Hello!
I have a project where I want to connect to wifi runtime. I discovered some sources and I’m shocked that in OS for IoT missed this very important functional. Where should I start and how to deal with already written drivers? Some advice?
@fabian18 implemented this for atwinc15x0
and provided a generic interface (#19387).
So you’d have to hook up that interdace in the esp-wifi
driver.
The implementation starts in the driver. You have to implement the driver options: NETOPT_SCAN, NETOPT_CONNECT, NETOPT_DISCONNECT. The driver stores an instance of wifi_scan_request_t, wifi_connect_request_t, wifi_disconnect_request_t, holding callbacks to call on corresponding events. The callback should send a message to the thread which initiated the driver action.