Is the power consumption 20uA in one hour? So that I can calculate it this way:
20uA * 24 (hours) * 365 (days) = 0,1752 A
The lifetime would be for a battery with 230mAh: 0,23 A / 0,1752 A = 1,3 years.
Is that right?
Still another question: How could I stop advertising? Should I listen for a response of a smartphone or stop advertising automatically after some minutes (max. 15-20 minutes)? What reduces the power consumption?
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.
Is the power consumption 20uA in one hour? So that I can calculate it this way:
20uA * 24 (hours) * 365 (days) = 0,1752 A
The lifetime would be for a battery with 230mAh: 0,23 A / 0,1752 A = 1,3 years.
Is that right?
Still another question: How could I stop advertising? Should I listen for a response of a smartphone or stop advertising automatically after some minutes (max. 15-20 minutes)? What reduces the power consumption?