1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-16 11:21:18 +03:00

Fix regression in WiFi.onEvent, add testcase (thanks @everslick)

This commit is contained in:
Ivan Grokhotkov
2016-06-14 13:09:46 +08:00
parent b4490cd76d
commit da17d5425a
2 changed files with 131 additions and 0 deletions

View File

@ -92,6 +92,7 @@ void ESP8266WiFiGenericClass::onEvent(WiFiEventCb f, WiFiEvent_t event)
(*f)(static_cast<WiFiEvent>(e->event));
});
handler->mCanExpire = false;
sCbEventList.push_back(handler);
}
WiFiEventHandler ESP8266WiFiGenericClass::onStationModeConnected(std::function<void(const WiFiEventStationModeConnected&)> f)