Skip to main content
Version: legacy

S0

api.S0readCounter(channel)

Reports current value of S0 channel counter (specified in channel input argument).

By calling this function, an internal shadow variable for the channel counter is updated, so that the counter for onThreshold() event is reset.

api.S0initializeCounter(channel, value)

Used to set the value of S0 counter in a non-volatile memory. Typicaly used on startup to restore current value.

api.S0setThreshold(channel, value)

Defines a threshold between current value of S0 channel counter and last reported value. When difference of these last two reaches the value, the onThreshold() event is called.