-
• #2
https://www.espruino.com/MDBT42Q#power-consumption
https://www.espruino.com/Puck.js#power-consumption
Advertising, 2000ms 0dBm (nonconnectable, nonscannable) - under 10uAIf you make it nonconnectable, nonscannable then make sure you have some recovery method to connect to it to change code, holding BTN1 for >3 seconds at power on should skip any code starting automatically from flash
-
• #4
When I use setTimeout to regularly change the BLE advertising (once a day or so), it will surely increase power consumption a bit. But will it lead to the interpreter running permanently wasting power or will it use (deep)sleep to minimise consumption? I have read here that nRF52 boards sleep automatically ...?
-
• #5
Yes, it'll just sleep automatically - if you change advertising data even once a minute, the increased power usage is pretty negligible so I wouldn't worry about it.
-
• #6
Thank you!
I just want the device to advertise like here ... working as an "AirTag". From what I understand this code not really loops it just sets the device in advertising mode. How much will it consume? Is there something I can disable to even lower the consumption?