mirror of https://github.com/arendst/Tasmota.git
Reference to struct SYSCFG {} Settings added in FUNC_SAVE_BEFORE_RESTART ID section.
parent
b0043d2a83
commit
31a262fca8
|
@ -131,7 +131,7 @@ snprintf_P(mqtt_data, sizeof(mqtt_data), PSTR("%s{s}MPR121%c Button%d{m}%d{e}"),
|
|||
It should be wrapped in `#ifdef USE_WEBSERVER ... #endif // USE_WEBSERVER`
|
||||
|
||||
### FUNC_SAVE_BEFORE_RESTART
|
||||
This callback ID is called to allow a sensor to prepare for saving configuration changes. To be used to save volatile data just before a restart.
|
||||
This callback ID is called to allow a sensor to prepare for saving configuration changes. To be used to save volatile data just before a restart. Variables can be appended to `struct SYSCFG {} Settings` in file `sonoff/settings.h`.
|
||||
|
||||
### FUNC_COMMAND
|
||||
This callback ID is called when a sensor specific command ``Sensor<xx>`` is executed where xx is the sensor index.
|
||||
|
|
Loading…
Reference in New Issue