I connectted to wifi and send a request to http server after started the device.
And then , I setting up "esp_sleep_enable_timer_wakeup(3000000);" and "esp_light_sleep_start();" . But after timeout , wake up from sleep, I try "example_connect();"(I knew sleeping time would shut down wifi connect) and sending http request , It didn't work.
Then I try "example_disconnect()" before "example_connect()" again, before sending http data. it cause a Error: "netif already added".
I did not give up , I try simply "esp_wifi_disconnect()" and "esp_wifi_connect();" before sending http data, it would just connect fail of socket , printing ".. socket connect failed errno=118".
Any one knows the answer? thanks
Who is online
Users browsing this forum: Baidu [Spider] and 9 guests
Newbies Start Here
Are you new to ESP8266?
Unsure what to do?
Dunno where to start?
Start right here!
We also have a RTOS version and a MESH version too!
Complete listing of the official ESP8266 related documentation release by ESPRESSIF!
Must read here!