23 #define ANALOG_FACTOR 0.03
57 MyDbg(F(
"MyVoltage::begin"));
69 bool isLowPower =
false;
70 long currSec = millis() / 1000;
double powerSaveModeVoltage
Minimum voltage to stay always alive.
long lowPowerPowerOnTimeSec
Timestamp of the last deep sleep start.
class MyData::RtcData rtcData
Data to store in the RTC memory.
MyOptions myOptions
The global options.
void MyDbg(String info, bool fromWebServer=false, bool newline=true)
long lowPowerActiveTimeSec
Timestamp of the last deep sleep start.
long lowPowerStartSec
Switch off timestamp.
bool isPowerOn
Is the power of the sim808 switched on?
double voltage
Current supply voltage.
MyVoltage(MyOptions &options, MyData &data)
MyOptions & myOptions
Reference to global options.
MyData & myData
Reference to global data.
#define ANALOG_FACTOR
Factor to the analog voltage divider.
MyData myData
The global collected data.
bool isLowPower
Is the power below min voltage?