Skip to main content
Version: Next

S0

This category contains functions specific to pulse S0 devices.

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. Typically 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.