115 MyData::RtcData::RtcData()
118 , deepSleepTimeSec(0)
119 , deepSleepStartSec(0)
120 , lowPowerActiveTimeSec(0)
121 , lowPowerPowerOnTimeSec(0)
122 , lastBme280ReadSec(0)
125 , lastMqttPublishSec(0)
127 , mqttLastSentTime(0)
149 crc =
crc32(crc, (
unsigned char *) &lastGps,
sizeof(
MyGps));
150 crc =
crc32(crc, (
unsigned char *) &aktiveTimeSec,
sizeof(
long));
151 crc =
crc32(crc, (
unsigned char *) &powerOnTimeSec,
sizeof(
long));
152 crc =
crc32(crc, (
unsigned char *) &deepSleepTimeSec,
sizeof(
long));
153 crc =
crc32(crc, (
unsigned char *) &deepSleepStartSec,
sizeof(
long));
154 crc =
crc32(crc, (
unsigned char *) &lowPowerActiveTimeSec,
sizeof(
long));
155 crc =
crc32(crc, (
unsigned char *) &lowPowerPowerOnTimeSec,
sizeof(
long));
156 crc =
crc32(crc, (
unsigned char *) &lastBme280ReadSec,
sizeof(
long));
157 crc =
crc32(crc, (
unsigned char *) &lastSmsCheckSec,
sizeof(
long));
158 crc =
crc32(crc, (
unsigned char *) &lastGpsReadSec,
sizeof(
long));
159 crc =
crc32(crc, (
unsigned char *) &lastMqttPublishSec,
sizeof(
long));
160 crc =
crc32(crc, (
unsigned char *) &mqttSendCount,
sizeof(
long));
161 crc =
crc32(crc, (
unsigned char *) &mqttLastSentTime,
sizeof(
long));
long aktiveTimeSec
Time in active mode without current millis().
long lowPowerPowerOnTimeSec
Timestamp of the last deep sleep start.
long awakeTimeOffsetSec
Awake time offset for SaveSettings.
long getLowPowerPowerOnTimeSec()
String status
Status information.
class MyData::RtcData rtcData
Data to store in the RTC memory.
StringList consoleCmds
open commands to send to the sim808 module
double getLowPowerPowerConsumption()
#define POWER_CONSUMPTION_ACTIVE
Power consumption if Active in mA.
bool waitingForGps
We are trying to get a location.
long crc32(long crc, unsigned char *buf, size_t len)
StringList logInfos
received sim808 answers or other logs
String softAPIP
registered ip of the access point
long powerOnTimeSec
Time the sim808 is on power without current millis..
#define POWER_CONSUMPTION_POWER_ON
Power consumption if SIM808 Active in mA.
long crcValue
CRC of the RtcData.
String imei
IMEI of the sim card.
long mqttLastSentTime
Last mqtt sent timestamp.
double temperature
Current BME280 temperature.
MyGps lastGps
Last known gps location without timeout.
double getPowerConsumption()
long lowPowerActiveTimeSec
Timestamp of the last deep sleep start.
bool isGpsActive
Is the gs part of the sim808 activated?
double pressure
Current BME280 pressure.
#define POWER_CONSUMPTION_DEEP_SLEEP
Power consumption if in deep sleep mode in mA.
String signalQuality
Quality of the signal.
bool isPowerOn
Is the power of the sim808 switched on?
String batteryVolt
Battery volt of the sim808 module.
long mqttSendCount
How many time the mqtt data successfully sent.
String restartInfo
Information on restart.
String cop
Operator selection.
String stationIP
registered station ip
bool isMoving
Is moving recognized.
double voltage
Current supply voltage.
String batteryLevel
Battery level of the sim808 module.
long lastMqttPublishSec
Timestamp from the last send.
long getLowPowerActiveTimeSec()
String modemInfo
Information from SIM808.
String softAPmacAddress
module mac address
String modemIP
registered modem ip
long secondsToDeepSleep
Time until next deepsleep. -1 = disabled.
bool isGsmActive
Is the sim808 modul connected to a gsm network?
long deepSleepTimeSec
Time in deep sleep mode.
long lastGpsUpdateSec
Elapsed Time of last read.
long deepSleepStartSec
Timestamp of the last deep sleep start.
long secondsSincePowerOn()
double humidity
Current BME280 humidity.
long lastBme280ReadSec
Timestamp of the last BME280 read.
bool isOtaActive
Is OverTheAir update active?
long lastSmsCheckSec
Timestamp of the last sms check.
long lastGpsReadSec
Timestamp of the last gps read.
double movingDistance
Minimum distance for moving flag.
bool isLowPower
Is the power below min voltage?