Remove connection attempts field from Config

This commit is contained in:
2025-12-16 16:14:32 +01:00
parent 8dffe8747f
commit cfaa47701e
2 changed files with 1 additions and 3 deletions

View File

@@ -12,8 +12,7 @@ typedef struct {
const char *topic; const char *topic;
const char *device_id; const char *device_id;
int mqtt_port; int mqtt_port;
long sleep_time; unsigned long sleep_time;
int connection_attempts;
} Config; } Config;
void initialize_config(Config *config, JsonDocument json); void initialize_config(Config *config, JsonDocument json);

View File

@@ -11,7 +11,6 @@ void initialize_config(Config *config, JsonDocument json) {
config->device_id = strdup(json["device_id"]); config->device_id = strdup(json["device_id"]);
config->mqtt_port = json["mqtt_port"]; config->mqtt_port = json["mqtt_port"];
config->sleep_time = minutes_to_milliseconds(json["sleep_time"]); config->sleep_time = minutes_to_milliseconds(json["sleep_time"]);
config->connection_attempts = json["connection_attempts"];
} }
bool load_config_file(const char *file_path, Config *config) { bool load_config_file(const char *file_path, Config *config) {