Skip to content

Commit

Permalink
Mqtt timeout + reconnect timeout increased
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan ten Hove committed Jun 29, 2017
1 parent dd9af05 commit 7219a54
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion MQTTPublisher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ bool MQTTPublisher::reconnect()
{
Serial.print("Attempting MQTT connection to server: ");
Serial.print(mqttSettings->mqttHostName);
Serial.print("...");
Serial.println("...");
}

// Create a random client ID
Expand Down
6 changes: 3 additions & 3 deletions MQTTPublisher.h
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
#pragma once
#define MQTT_SOCKET_TIMEOUT 5
#pragma once
#include <Arduino.h>
#include <ESP8266WiFi.h>
#include "SettingsManager.h"
#include "GoodWeCommunicator.h"
#include <vector>
#include <PubSubClient.h>
#include "PubSubClient.h"
#include "WiFiClient.h"

#define RECONNECT_TIMEOUT 5000
#define RECONNECT_TIMEOUT 15000


class MQTTPublisher
Expand Down

0 comments on commit 7219a54

Please sign in to comment.