Skip to content

Commit 9a5ee03

Browse files
committed
minor bugfix (still not really tested)
1 parent fad9ce8 commit 9a5ee03

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

examples/WifiSwitch/WifiSwitch.ino

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,12 +109,13 @@ void loop() {
109109
}
110110

111111

112+
112113
void switchGuestWifi(bool status) {
114+
String params[][2] = {{"NewEnable", "0"}};
113115
if (status) {
114-
String params[][2] = {{"NewEnable", "1"}};
116+
params[0][1] = "1";
115117
Serial.println ("Set status: on");
116118
} else {
117-
String params[][2] = {{"NewEnable", "0"}};
118119
Serial.println ("Set status: off");
119120
}
120121
String req[][2] = {{}};

0 commit comments

Comments
 (0)