diff -r 0432d9147682 -r 15dc572a7fcb main/config.h --- a/main/config.h Thu Sep 28 11:29:23 2023 +0200 +++ b/main/config.h Tue Oct 03 17:24:06 2023 +0200 @@ -77,6 +77,8 @@ ML1_WAITCON, ///< Wait for connection and measurements ML1_SEND, ///< Send MQTT node and units messages ML1_WAITACK, ///< MQTT messages received + ML1_STATUS, ///< Update status + ML1_SCAN, ///< Scan AP's for better one ML1_DONE ///< All done } ML1; @@ -106,11 +108,6 @@ ML2_SEL_SENSOR1, ///< Unit 1 select sensor ML2_SEL_SENSOR2, ///< Unit 2 select sensor ML2_SEL_SENSOR3, ///< Unit 3 select sensor - ML2_SETUP_NETWORK, ///< Network setup - ML2_SETUP_MQTT, ///< MQTT setup - ML2_SETUP_WIFI, ///< WiFi setup - ML2_LIST_APS, ///< WiFi list APs - ML2_EDIT_AP, ///< WiFi edit AP ML2_INACTIVE, ///< Inactive reached, cleanup ML2_DONE ///< All done } ML2; @@ -118,35 +115,6 @@ /** - * @brief Global configuration. File /spiffs/config.conf - */ -typedef struct { - uint8_t Version; ///< Record version number for updates. - char ntp_server[32]; ///< Preffered NTP server. - char hostname[32]; ///< Our hostname. - char uuid[37]; ///< Sort of uuid code. - char xlastSSID[32]; ///< Not used anymore. - char mqtt_server[32]; ///< MQTT server. - uint16_t mqtt_port; ///< MQTT TCP port. - char mqtt_user[32]; ///< MQTT user name if needed. - char mqtt_pwd[62]; ///< MQTT password. -} strConfig_t; ///< Config record. - - -/** - * @brief Write configuration to disk. - */ -void write_config(void); - -/** - * @brief Read configuration file. If it doesn't exist create and - * write a new configuration file with sane defaults. - */ -void read_config(void); - - - -/** * @brief Records with WiFi stations we have succesfully connected. */ typedef struct {