You can chat about native SDK questions and issues here.

User avatar
By peyo
#75642 I use offcial RTOS SDK , I build a HTTP server in the esp8266, I got the ssid and pass through the web post method.I found l connect the ap when i use the function `wifi_station_set_config_current()` and `wifi_station_connect()` with the return 1. And once after I handle a HTTP request successly, the software timer stop.I have tried the connecting work in the handling task or the hardware timer callback or the task created in the hardware timer callback, all failed. I set a new software timer after the HTTP handling and also failed too…
In the task handling the HTTP request , I still can print the free heap.
I know these functions need to be used after the station being on. But I dont know how can I ensure if the station is on?
I have tried the wifi connecting in the post handling task too, It was successed but after I revised the code in a large range, it couldn't work now...
Need your help!