Skip to content

Observables

Luis Llamas edited this page Aug 26, 2019 · 5 revisions

Observable Range

Emits a particular range of sequential integers

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

Emits 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

Property<T>()

Observable Property emits any value asigned with the operator =, so it's used 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)

Cold Observables, need to call Update() method manually as frequently as posible)

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)

Cold Observables, need to call Update() method manually as frequently as posible)

Observable Serial

Receives a data through the serial port

Char version

FromSerialChar()

String version

FromSerialString()

Integer version

FromSerialInteger()

Float version

FromSerialFloat()

Cold Observables, need to call Recieve() method manually as frequently as posible)