mirror of
https://git.mirrors.martin98.com/https://github.com/luc-github/ESP3D.git
synced 2025-08-14 11:25:56 +08:00
Missing Sleep mode setting at start
Missing Sleep mode setting at start
This commit is contained in:
parent
cd96d84a1c
commit
70919d0dbd
@ -76,7 +76,9 @@ bool WIFI_CONFIG::Setup()
|
||||
int wstatus;
|
||||
IPAddress currentIP;
|
||||
byte bflag=0;
|
||||
|
||||
//set the sleep mode
|
||||
if (!CONFIG::read_byte(EP_SLEEP_MODE, &bflag ))return false;
|
||||
wifi_set_sleep_type ((sleep_type)bflag);
|
||||
//AP or client ?
|
||||
if (!CONFIG::read_byte(EP_WIFI_MODE, &bflag ) || !CONFIG::read_string(EP_SSID, sbuf , MAX_SSID_LENGH) ||!CONFIG::read_string(EP_PASSWORD, pwd , MAX_PASSWORD_LENGH)) return false;
|
||||
//disconnect if connected
|
||||
|
Loading…
x
Reference in New Issue
Block a user