ESP8266 Developer Zone The Official ESP8266 Forum 2020-11-25T11:49:53+08:00 https://bbs.espressif.com:443/feed.php?f=7&t=67428 2020-11-25T11:49:53+08:00 2020-11-25T11:49:53+08:00 https://bbs.espressif.com:443/viewtopic.php?t=67428&p=92272#p92272 <![CDATA[Re: [Help!] Why I sending Http data Fail after "esp_light_sleep()" ?]]> Statistics: Posted by Her Mary — Wed Nov 25, 2020 11:49 am


]]>
2020-11-18T12:22:25+08:00 2020-11-18T12:22:25+08:00 https://bbs.espressif.com:443/viewtopic.php?t=67428&p=91702#p91702 <![CDATA[[Help!] Why I sending Http data Fail after "esp_light_sleep()" ?]]> 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".

hopelessness.

Any one knows the answer? thanks

Statistics: Posted by A_Normal_David — Wed Nov 18, 2020 12:22 pm


]]>