Skip to content

Commit 359e49d

Browse files
committed
Fixed bug in Switch example
1 parent f08b286 commit 359e49d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

examples/Switch/Switch.ino

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,7 @@ void setupWiFi() {
9696
Serial.printf(".");
9797
delay(250);
9898
}
99-
IPAddress localIP = WiFi.localIP();
100-
Serial.printf("connected!\r\n[WiFi]: IP-Address is %s\r\n", localIP[0], localIP[1], localIP[2], localIP[3]);
99+
Serial.printf("connected!\r\n[WiFi]: IP-Address is %s\r\n", WiFi.localIP().toString().c_str());
101100
}
102101

103102
// setup function for SinricPro

0 commit comments

Comments
 (0)