Hello.
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.
Station status as events to be captured from a function.
Re: Station status as events to be captured from a function.
Postby Her Mary » Tue Dec 19, 2017 7:07 pm
You can set a timer to check wifi_station_get_connect_status, see the user_esp_platform_check_ip in example https://github.com/espressif/ESP8266_NONOS_SDK/blob/master/examples/IoT_Demo/user/user_esp_platform.c.
Who is online
Users browsing this forum: No registered users and 120 guests
Login
Newbies Start Here
Are you new to ESP8266?
Unsure what to do?
Dunno where to start?
Start right here!
Latest SDK
Documentation
Complete listing of the official ESP8266 related documentation release by ESPRESSIF!
Must read here!
- All times are UTC+08:00
- Top
- Delete all board cookies
About Us
Espressif Systems is a fabless semiconductor company providing cutting-edge low power WiFi SoCs and wireless solutions for wireless communications and Internet of Things applications. We are the manufacturer of ESP8266EX.