|
MeterLogger
|
Go to the source code of this file.
Data Structures | |
| struct | syscfg_t |
| struct | SAVE_FLAG |
Macros | |
| #define | METER_SERIAL_LEN 8 |
Functions | |
| void ICACHE_FLASH_ATTR | cfg_save () |
| void ICACHE_FLASH_ATTR | cfg_load () |
| void ICACHE_FLASH_ATTR | cfg_save_defered () |
| ICACHE_FLASH_ATTR void | config_save_timer_func (void *arg) |
Variables | |
| static const char | key [] = KEY |
| syscfg_t | sys_cfg |
| #define METER_SERIAL_LEN 8 |
Definition at line 39 of file config.h.
Referenced by cfg_load().
| void ICACHE_FLASH_ATTR cfg_load | ( | ) |
Definition at line 77 of file config.c.
References ccit_crc16(), syscfg_t::ccit_crc16, CFG_LOCATION, cfg_save(), DEFAULT_METER_SERIAL, DEFAULT_SECURITY, EXT_CFG_LOCATION, ext_spi_flash_read(), EXT_SPI_RAM_SEC_SIZE, ICACHE_FLASH_ATTR, INFO, key, memcpy, memset, METER_SERIAL_LEN, MQTT_CLIENT_ID, MQTT_HOST, MQTT_KEEPALIVE, MQTT_PASS, MQTT_PORT, MQTT_USER, os_memset, os_printf, STA_PASS, STA_SSID, STA_TYPE, system_get_chip_id(), system_param_load(), and tfp_snprintf().
Referenced by tplSetup().
| void ICACHE_FLASH_ATTR cfg_save | ( | ) |
Definition at line 28 of file config.c.
References ccit_crc16(), syscfg_t::ccit_crc16, CFG_LOCATION, EXT_CFG_LOCATION, ext_spi_flash_erase_sector(), ext_spi_flash_read(), ext_spi_flash_write(), EXT_SPI_RAM_SEC_SIZE, ICACHE_FLASH_ATTR, and system_param_save_with_protect().
Referenced by cfg_load(), cgiSetup(), and config_save_timer_func().
| void ICACHE_FLASH_ATTR cfg_save_defered | ( | ) |
Definition at line 144 of file config.c.
References config_save_timer, config_save_timer_func(), ICACHE_FLASH_ATTR, NULL, os_timer_arm, os_timer_disarm, os_timer_func_t, os_timer_setfn, and SAVE_DEFER_TIME.
Referenced by ac_thermo_close(), ac_thermo_open(), add_cron_job_from_query(), and clear_cron_jobs().
| ICACHE_FLASH_ATTR void config_save_timer_func | ( | void * | arg | ) |
Definition at line 151 of file config.c.
References cfg_save(), config_save_timer, config_save_timer_func(), config_save_timer_running, NULL, os_timer_arm, os_timer_disarm, os_timer_func_t, os_timer_setfn, and SAVE_DEFER_TIME.
Referenced by cfg_save_defered(), and config_save_timer_func().
|
static |
Definition at line 42 of file config.h.
Referenced by add_cron_job_from_query(), BlockCopy(), and cfg_load().
| syscfg_t sys_cfg |
Definition at line 12 of file config.c.
Referenced by ac_thermo_close(), ac_thermo_open(), add_cron_job_from_query(), cgiSetup(), clear_cron_jobs(), cron_init(), minute_timer_func(), tplSetup(), wifi_connect(), wifi_default(), wifi_fallback(), wifi_handle_event_cb(), wifi_reconnect_timer_func(), and wifi_scan_done_cb().
1.8.13