|
Safe Sprinkler
Master/slave irrigation system (ESP-NOW + LoRaWAN)
|
#include "esp_log.h"#include "general/node_cfg.h"#include "master/main_master.h"#include "nvs.h"#include "nvs_flash.h"#include "ttn_credentials.h"#include <inttypes.h>

Go to the source code of this file.
Functions | |
| int | load_config (void) |
| Load master configuration from NVS. | |
| int | save_config (void) |
| Save master configuration to NVS. | |
| int load_config | ( | void | ) |
Load master configuration from NVS.
Loads TTN credentials (DevEUI, AppKey), moisture threshold, and slave data into global variables (e.g. LORAWAN_DEVEUI, configured_moisture, s_data).
| int save_config | ( | void | ) |
Save master configuration to NVS.
Persists TTN credentials, moisture threshold, and slave data.