Here is my code for the puck v2. The idea is that when the button is pressed, it sends info (the button count, the battery level and the z-axis value) to Node-Red so that Node-Red can react to the event.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Here is my code for the puck v2. The idea is that when the button is pressed, it sends info (the button count, the battery level and the z-axis value) to Node-Red so that Node-Red can react to the event.
So, kind of works, but then it keeps sending
Here is the first batch of three data points (button count, power and z-axis):
Here is the next batch exactly one minute later.
Am I missing something with this? I thought the puck would sleep until the next press.
On a side note... it seems like there are RSSI messages very frequently. Do they use just a small bit of power?