Skip to content

Commit d4c17b0

Browse files
committed
adapt examples for String return type from SSID
1 parent faf5fbd commit d4c17b0

File tree

1 file changed

+1
-1
lines changed
  • hardware/esp8266com/esp8266/libraries/DNSServer/examples/CaptivePortalAdvanced

1 file changed

+1
-1
lines changed

hardware/esp8266com/esp8266/libraries/DNSServer/examples/CaptivePortalAdvanced/handleHttp.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ void handleWifi() {
7373
Serial.println("scan done");
7474
if (n > 0) {
7575
for (int i = 0; i < n; i++) {
76-
server.sendContent(String() + "\r\n<tr><td>SSID " + String(WiFi.SSID(i)) + String((WiFi.encryptionType(i) == ENC_TYPE_NONE)?" ":" *") + " (" + WiFi.RSSI(i) + ")</td></tr>");
76+
server.sendContent(String() + "\r\n<tr><td>SSID " + WiFi.SSID(i) + String((WiFi.encryptionType(i) == ENC_TYPE_NONE)?" ":" *") + " (" + WiFi.RSSI(i) + ")</td></tr>");
7777
}
7878
} else {
7979
server.sendContent(String() + "<tr><td>No WLAN found</td></tr>");

0 commit comments

Comments
 (0)