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

reorder part 3

This commit is contained in:
Markus Sattler
2015-12-28 17:55:38 +01:00
parent 20de9a5673
commit d521cea232
2 changed files with 68 additions and 19 deletions

View File

@ -106,12 +106,21 @@ static bool softap_config_equal(const softap_config& lhs, const softap_config& r
// ---------------------------------------------------- ESP8266WiFiClass -------------------------------------------------
// -----------------------------------------------------------------------------------------------------------------------
ESP8266WiFiClass::ESP8266WiFiClass() :
_smartConfigStarted(false), _smartConfigDone(false), _useStaticIp(false), _persistent(true) {
ESP8266WiFiClass::ESP8266WiFiClass() {
_useStaticIp = false;
uint8 m = wifi_get_opmode();
_useClientMode = (m & WIFI_STA);
_useApMode = (m & WIFI_AP);
_useClientMode = (m & WIFI_STA);
_persistent = true;
_smartConfigStarted = false;
_smartConfigDone = false;
wifi_set_event_handler_cb((wifi_event_handler_cb_t) &ESP8266WiFiClass::_eventCallback);
}
/**