@dlinkman I am testing the ability to log data from the Puck over long periods and have had great results in using NRF.setAdvertising() in a setInterval() function.
Each time the setInterval() runs (say every 5 seconds) the data that gets advertised is updated. Using node-red to watch these values change allows me to create database entries over time, like temperature, battery level etc.
Had it running for days now and the battery is still at 100%.
Basically no need to connect if you are only reading values.
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.
@dlinkman I am testing the ability to log data from the Puck over long periods and have had great results in using NRF.setAdvertising() in a setInterval() function.
Each time the setInterval() runs (say every 5 seconds) the data that gets advertised is updated. Using node-red to watch these values change allows me to create database entries over time, like temperature, battery level etc.
Had it running for days now and the battery is still at 100%.
Basically no need to connect if you are only reading values.