1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-07-27 18:02:17 +03:00

use String instead of char pointer for SSID() and psk()

This commit is contained in:
Pascal Gollor
2015-09-30 18:15:53 +02:00
parent 1bc87e7bff
commit 0034697b6e
3 changed files with 9 additions and 13 deletions

View File

@ -240,12 +240,8 @@ void setup()
delay(10);
}
// ... Load sdk config.
String ssid(WiFi.SSID());
String psk(WiFi.psk());
// ... Compare fiel config with sdk config.
if (ssid != station_ssid || psk != station_psk)
// ... Compare file config with sdk config.
if (WiFi.SSID() != station_ssid || WiFi.psk() != station_psk)
{
Serial.println("WiFi config changed.");