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? thanksStatistics: Posted by A_Normal_David — Wed Nov 18, 2020 12:22 pm
]]>