Skip to content

Observables

Luis Llamas edited this page Apr 24, 2019 · 5 revisions

Observable Range

Generate a sequence of numbers

Hot version

FromRange(T start, T end, T step = 1)

Cold version (need to call Next() method manually)

FromRangeDefer(T start, T end, T step = 1)

Observable Array

Generate a sequence from an Array

FromArray(T *array, size_t length)

Cold version (need to call Next() method manually)

FromArrayDefer(T *array, size_t length)

Observable Property

Generates a wrapper around any variable

FromProperty()

Then you can use this wrapper like a normal variable

Observable Timer

Emits a message passed a certain amount of time

Millis version

TimerMillis(unsigned long interval)

Micros version

TimerMicros(unsigned long interval)

Observable Interval

Emits a message at regular time intervals

Millis version

IntervalMillis(unsigned long interval, unsigned long delay = 0)

Micros version

IntervalMicros(unsigned long interval, unsigned long delay = 0)

Observable Serial

Receives a data through the serial port

Char version

FromSerialChar()

String version

FromSerialString()

Integer version

FromSerialInteger()

Float version

FromSerialFloat()
Clone this wiki locally