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:
@ -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.");
|
||||
|
||||
|
Reference in New Issue
Block a user