#include <Options.h>
Public Member Functions | |
bool | load () |
bool | save () |
Data Fields | |
String | gprsAP |
GRPS access point of the sim card supplier. | |
String | gprsUser |
GRPS access point User. | |
String | gprsPassword |
GRPS access point Password. | |
bool | connectWifiAP |
Should we connect to wifi. | |
String | wifiAP |
WiFi AP name. | |
String | wifiPassword |
WiFi AP password. | |
bool | isDebugActive |
Is detailed debugging enabled? | |
long | bme280CheckIntervalSec |
Time interval to read the temp, hum and pressure. | |
bool | powerOn |
Is the GSM power from the DC-DC modul switched on? | |
bool | isSmsEnabled |
Is the sms check functionality active? | |
bool | isGpsEnabled |
Is the gps part of the sim808 active? | |
long | gpsTimeoutSec |
Timeout for waiting for gps position. | |
long | gpsCheckIntervalSec |
Time interval to check the gps position. | |
long | minMovingDistance |
Minimum distance to accept as moving or not. | |
String | phoneNumber |
Pone number for sms answers. | |
long | smsCheckIntervalSec |
SMS check intervall. | |
bool | isDeepSleepEnabled |
Should the system go into deepsleep if needed. | |
double | powerSaveModeVoltage |
Minimum voltage to stay always alive. | |
long | powerCheckIntervalSec |
Time interval to check the power supply. | |
long | activeTimeSec |
Maximum alive time after deepsleep. | |
long | deepSleepTimeSec |
Time to stay in deep sleep (without check interrupts) | |
bool | isMqttEnabled |
Should the system connect to a MQTT server? | |
String | mqttName |
MQTT server name. | |
String | mqttId |
MQTT ID. | |
String | mqttServer |
MQTT server url. | |
long | mqttPort |
MQTT server port. | |
String | mqttUser |
MQTT user. | |
String | mqttPassword |
MQTT password. | |
long | mqttSendOnMoveEverySec |
Send data interval to MQTT server on moving. | |
long | mqttSendOnNonMoveEverySec |
Send data interval to MQTT server on non moving. | |
Class with the complete configuration data of the programm. It can load and save the data in a ini file format to the SPIFFS as key value pairs 'key=value' line by line.
bool MyOptions::load | ( | ) |
Load the key-value pairs from the option file into the option values.
Definition at line 108 of file Options.h.
References activeTimeSec, bme280CheckIntervalSec, connectWifiAP, deepSleepTimeSec, gprsAP, gprsPassword, gprsUser, gpsCheckIntervalSec, gpsTimeoutSec, isDebugActive, isDeepSleepEnabled, isGpsEnabled, isMqttEnabled, isSmsEnabled, minMovingDistance, mqttId, mqttName, mqttPassword, mqttPort, mqttSendOnMoveEverySec, mqttSendOnNonMoveEverySec, mqttServer, mqttUser, MyDbg(), OPTION_FILE_NAME, phoneNumber, powerCheckIntervalSec, powerOn, powerSaveModeVoltage, smsCheckIntervalSec, wifiAP, and wifiPassword.
Referenced by setup().
bool MyOptions::save | ( | ) |
Save all the options as key-value pair to the option file.
Definition at line 209 of file Options.h.
References activeTimeSec, bme280CheckIntervalSec, connectWifiAP, deepSleepTimeSec, gprsAP, gprsPassword, gprsUser, gpsCheckIntervalSec, gpsTimeoutSec, isDebugActive, isDeepSleepEnabled, isGpsEnabled, isMqttEnabled, isSmsEnabled, minMovingDistance, mqttId, mqttName, mqttPassword, mqttPort, mqttSendOnMoveEverySec, mqttSendOnNonMoveEverySec, mqttServer, mqttUser, MyDbg(), OPTION_FILE_NAME, phoneNumber, powerCheckIntervalSec, powerOn, powerSaveModeVoltage, smsCheckIntervalSec, wifiAP, and wifiPassword.
Referenced by MySmsCmd::cmdOff(), MySmsCmd::cmdOn(), MySmsCmd::cmdPsm(), MyWebServer::handleLoadMainInfo(), and MyWebServer::handleSaveSettings().