Skip to content

Commit 9fb07a2

Browse files
committed
MQTT Example Update
- add NonBlockingMode
1 parent aa069ca commit 9fb07a2

File tree

1 file changed

+4
-4
lines changed
  • Arduino_package/hardware/libraries/MQTTClient/examples/MQTT_Basic

1 file changed

+4
-4
lines changed

Arduino_package/hardware/libraries/MQTTClient/examples/MQTT_Basic/MQTT_Basic.ino

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@
1818
#include <WiFi.h>
1919
#include <PubSubClient.h>
2020

21-
char ssid[] = "Network_SSID"; // your network SSID (name)
22-
char pass[] = "Password"; // your network password
23-
int status = WL_IDLE_STATUS; // Indicator of Wifi status
21+
char ssid[] = "Network_SSID5"; // your network SSID (name)
22+
char pass[] = "Password"; // your network password
23+
int status = WL_IDLE_STATUS; // Indicator of Wifi status
2424

2525
char mqttServer[] = "test.mosquitto.org";
2626
char clientId[] = "amebaClient";
@@ -82,7 +82,7 @@ void setup()
8282
// wait 10 seconds for connection:
8383
delay(10000);
8484
}
85-
85+
wifiClient.setNonBlockingMode();
8686
client.setServer(mqttServer, 1883);
8787
client.setCallback(callback);
8888

0 commit comments

Comments
 (0)