Änderungen wegen PORT 8883
This commit is contained in:
parent
abd4de1655
commit
881f501dd0
|
@ -42,7 +42,7 @@ build_flags = ${env.build_flags}
|
|||
-DDNS=\"192.168.127.1\"
|
||||
-DKMYIP=\"192.168.127.49\"
|
||||
-Dmqtt_server=\"hjkmqtt.dedyn.io\"
|
||||
-Dmqtt_port=8883
|
||||
-Dmqtt_port=61883
|
||||
-DTERROR=5
|
||||
-DTLOWBATT=60
|
||||
-DTINTERVAL=1
|
||||
|
|
|
@ -18,7 +18,7 @@ void verifyFingerprint();
|
|||
void callback(char* topic1, byte* payload, unsigned int length);
|
||||
void pulse_pin(uint8_t pin);
|
||||
|
||||
WiFiClientSecure espClient;
|
||||
WiFiClient espClient;
|
||||
PubSubClient client(espClient);
|
||||
|
||||
#include <error.h>
|
||||
|
@ -117,7 +117,7 @@ void setup() {
|
|||
Serial.print("ID: \t\t"); Serial.println(deviceId);
|
||||
|
||||
// ca. 5 s
|
||||
espClient.setFingerprint(mqtt_fprint);
|
||||
//espClient.setFingerprint(mqtt_fprint);
|
||||
client.setServer(mqtt_server, mqtt_port);
|
||||
client.setCallback(callback);
|
||||
Serial.printf("Systemstatus : 0x%02x \n", SystemStatus);
|
||||
|
@ -267,7 +267,7 @@ void reconnect() {
|
|||
sprintf(clientName, "%s%s", "ESP8266Client", sID);
|
||||
while (!client.connected()) {
|
||||
Serial.print("Attempting MQTT connection...");
|
||||
verifyFingerprint();
|
||||
//verifyFingerprint();
|
||||
// Attempt to connect
|
||||
if (client.connect(clientName)) {
|
||||
Serial.println("connected");
|
||||
|
|
Loading…
Reference in New Issue
Block a user