I have purchased an ESP-32 BLE module. I have programmed it to turn on to broadcast a Bluetooth text to my phone and then enter the deep sleep mode. Then continue this loop.
When the Bluetooth text code it been to run the current it pulls is around 150mA. Then the module enters the deep sleep mode for 15 seconds at which time the module now pulls only 10mA.
I want to know if I ran it of lithium battery like the 18650 with a capacity of 2600mAH, how long will the battery last?
Please note I know how to calculate the lifespan of the battery it is just the current pulled by the device divided by the capacity of the battery. But how is it done when the current is not constant but changes between 'two current states' i.e. 150mA for 2secs then 10mA for 15secs and then loops again?