Function:
Set whether ESP8266 station will connect to AP (which is recorded)
automatically or not when power on. Default to enable auto-connect.
Note:
Call this API in user_init, it is effective in this current power on; call
it in other place, it will be effective in next power on.
This configuration will be saved in flash system parameter area if changed.
@eriksl: Thanks a lot! I was expecting the APIs to be a complex graph but it actually seems pretty sparse .
Also, for an event driven way to handle the wifi connection, I believe we can use wifi_set_event_handler_cb(). Pretty excited to try it!