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.

info

By calling this function, the internal shadow variable for the channel counter is updated, resetting the counter for the onThreshold() event.

api.S0initializeCounter(channel, value)

Sets the value of S0 channel counter in a non-volatile memory.

note

This function is typically used on startup to restore the current value.

api.S0setThreshold(channel, value)

Defines a threshold between current value of S0 channel counter and last reported value.

info

When the difference between these two values reaches the threshold, the onThreshold() event is triggered.