ESP8266 Developer Zone The Official ESP8266 Forum 2017-12-19T19:07:14+08:00 https://bbs.espressif.com:443/feed.php?f=7&t=8756 2017-12-19T19:07:14+08:00 2017-12-19T19:07:14+08:00 https://bbs.espressif.com:443/viewtopic.php?t=8756&p=18734#p18734 <![CDATA[Re: Station status as events to be captured from a function.]]> https://github.com/espressif/ESP8266_NONOS_SDK/blob/master/examples/IoT_Demo/user/user_esp_platform.c.

Statistics: Posted by Her Mary — Tue Dec 19, 2017 7:07 pm


]]>
2017-12-13T23:11:57+08:00 2017-12-13T23:11:57+08:00 https://bbs.espressif.com:443/viewtopic.php?t=8756&p=18689#p18689 <![CDATA[Station status as events to be captured from a function.]]>
Is there a callback I can register somehow in order to accept the messages from the STATION_STATUS enum, as events?

typedef enum {
STATION_IDLE = 0, /**< ESP8266 station idle */
STATION_CONNECTING, /**< ESP8266 station is connecting to AP*/
STATION_WRONG_PASSWORD, /**< the password is wrong*/
STATION_NO_AP_FOUND, /**< ESP8266 station can not find the target AP*/
STATION_CONNECT_FAIL, /**< ESP8266 station fail to connect to AP*/
STATION_GOT_IP /**< ESP8266 station got IP address from AP*/
} STATION_STATUS;

Just like the SYSTEM EVENTS that can be captured from the callback set from the wifi_set_event_handler_cb function?

I am also posting this to the esp8266 forum.
Thanks a lot!
Vasileios.

Statistics: Posted by kostbill — Wed Dec 13, 2017 11:11 pm


]]>