put mqtt port into a contant
This commit is contained in:
1 parent
fa6789daaa
commit
7a7529bb69
2 files changed
+2
-1
No files matched your search
+1
-1
@@ -61,7 +61,7 @@ RCSwitch mySwitch = RCSwitch();
|
|||||||
decode_results results;
|
decode_results results;
|
||||||
|
|
||||||
// client parameters
|
// client parameters
|
||||||
PubSubClient client(mqtt_server, 1883, callback, eClient);
|
PubSubClient client(mqtt_server, mqtt_port, callback, eClient);
|
||||||
|
|
||||||
//MQTT last attemps reconnection date
|
//MQTT last attemps reconnection date
|
||||||
int lastReconnectAttempt = 0;
|
int lastReconnectAttempt = 0;
|
||||||
|
|||||||
@@ -34,6 +34,7 @@ CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFT
|
|||||||
#define mqtt_server "192.168.1.17"
|
#define mqtt_server "192.168.1.17"
|
||||||
#define mqtt_user "your_username" // not compulsory only if your broker needs authentication
|
#define mqtt_user "your_username" // not compulsory only if your broker needs authentication
|
||||||
#define mqtt_password "your_password" // not compulsory only if your broker needs authentication
|
#define mqtt_password "your_password" // not compulsory only if your broker needs authentication
|
||||||
|
#define mqtt_port 1883
|
||||||
|
|
||||||
// Update these with values suitable for your network.
|
// Update these with values suitable for your network.
|
||||||
#ifdef ESP8266 // for nodemcu, weemos and esp8266
|
#ifdef ESP8266 // for nodemcu, weemos and esp8266
|
||||||
|
|||||||
Reference in new issue
Block a user