Code ergänzt
This commit is contained in:
1 parent
6cb1c94f37
commit
38fdf6596c
1 file changed
+2
-2
@@ -22,7 +22,7 @@ void setup_wifi() {
|
||||
Serial.println();
|
||||
Serial.print("Connecting to ");
|
||||
Serial.println(SSID);
|
||||
|
||||
WiFi.mode(WIFI_STA);
|
||||
WiFi.begin(SSID, PSK);
|
||||
|
||||
while (WiFi.status() != WL_CONNECTED) {
|
||||
@@ -57,7 +57,7 @@ void loop() {
|
||||
snprintf (msg, 50, "Alive since %ld milliseconds", millis());
|
||||
Serial.print("Publish message: ");
|
||||
Serial.println(msg);
|
||||
client.publish("/home/data", "Hello World");
|
||||
client.publish("/home/data", "Hello asdf World");
|
||||
delay(5000);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user