Skip to content

Commit

Permalink
increase restart timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
256dpi committed Apr 19, 2018
1 parent 7635c25 commit c9c65c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/main/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ static void process(void *p) {

static void restart(void *_) {
for (;;) {
// stop and start mqtt every 10 seconds
vTaskDelay(10000 / portTICK_PERIOD_MS);
// stop and start mqtt every minute
vTaskDelay(60000 / portTICK_PERIOD_MS);
esp_mqtt_stop();
esp_mqtt_start(MQTT_HOST, MQTT_PORT, "esp-mqtt", MQTT_USER, MQTT_PASS);
}
Expand Down

0 comments on commit c9c65c9

Please sign in to comment.