put mqtt port into a contant

This commit is contained in:
1technophile committed 2017-02-27 20:09:09 +01:00
1 parent fa6789daaa
commit 7a7529bb69
2 files changed
+2 -1

No files matched your search

+1 -1
View File
@@ -61,7 +61,7 @@ RCSwitch mySwitch = RCSwitch();
decode_results results;
// client parameters
PubSubClient client(mqtt_server, 1883, callback, eClient);
PubSubClient client(mqtt_server, mqtt_port, callback, eClient);
//MQTT last attemps reconnection date
int lastReconnectAttempt = 0;