Hi Octave Community,
We’ve been testing successfully with Octave, getting raw sensor data through to our cloud stack.
Now looking suggestions as we refine and port over our logic from a competitor’s platform. Our challenges are more to do with understanding when best to use Octave features such as querying buffered data, filtering, etc. We think what we’re trying to do is a fairly common scenario, but we couldn’t find many examples. Thank you for any tips:
Goal: Read a sensor value periodically, and determine at the edge if the value surpasses a threshold, sustained over a period of time. Retain only these values and send them to the cloud at certain times throughout the day. Here we go:
var X is the resource event value from the sensor
var Y is a sensor value threshold we define
var C is a counter
var T is a time value (e.g. 180 seconds = 3 minutes)
Get a resource event value X every 5 seconds
While (X > Y && C <= T)
Retain the value of X (e.g. push X into an array, maybe defined as a Virtual Resource JSON type)
Increment the Counter by 5 seconds (e.g. C+=5)
Send these values over the cloud several times a day
Bonus: ULPM or sleep to conserve msgs and batteries during off-hours
What would help is to know what are the key features of Octave which we can explore and structure our business logic to help us achieve this?
Much thanks again,