@@ -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); | |||
} | |||