diff --git a/include/config.h b/include/config.h index eeb7bee..87c5f06 100644 --- a/include/config.h +++ b/include/config.h @@ -12,8 +12,7 @@ typedef struct { const char *topic; const char *device_id; int mqtt_port; - long sleep_time; - int connection_attempts; + unsigned long sleep_time; } Config; void initialize_config(Config *config, JsonDocument json); diff --git a/src/config.cpp b/src/config.cpp index a1ef442..da52799 100644 --- a/src/config.cpp +++ b/src/config.cpp @@ -11,7 +11,6 @@ void initialize_config(Config *config, JsonDocument json) { config->device_id = strdup(json["device_id"]); config->mqtt_port = json["mqtt_port"]; 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) {