Stateful Operations
Sharing data between uplink decodings or rule executions
function consume(event) {
var state = event.state || {};
//your implementation goes here...
}function consume(event) {
var state = event.state || {};
//your implementation goes here...
state["numOfSamples"] = numOfSamples;
emit('state', state);
}function consume(event) {
//your implementation goes here...
emit('state', { "numOfSamples": numOfSamples });
}Example Stateful Custom Logic Block
Event Object
Last updated
Was this helpful?