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

add WiFi sleep management

Note: testing needed
This commit is contained in:
Markus Sattler
2015-12-29 16:14:27 +01:00
parent bbeaeaad54
commit 61440d9e2b
2 changed files with 43 additions and 2 deletions

View File

@ -46,7 +46,7 @@ class ESP8266WiFiGenericClass {
bool setPhyMode(WiFiPhyMode_t mode);
WiFiPhyMode_t getPhyMode();
void setOutputPower(float_t dBm);
void setOutputPower(float dBm);
void persistent(bool persistent);
@ -56,9 +56,13 @@ class ESP8266WiFiGenericClass {
bool enableSTA(bool enable);
bool enableAP(bool enable);
bool forceSleepBegin(uint32 sleepUs = 0);
bool forceSleepWake();
protected:
static bool _persistent;
static WiFiEventCb _cbEvent;
static WiFiMode_t _forceSleepLastMode;
static void _eventCallback(void *event);