Reason code
Posted: Tue Jan 14, 2020 4:00 pm
How do I get the reason code with the non legacy event loop?
ie: static void event_handler(void* arg, esp_event_base_t event_base, int32_t event_id, void* event_data)
I understand with the legacy eventloop:
esp_err_t event_handler(void *ctx, system_event_t *event)
I can get the info:
system_event_sta_disconnected_t *disconnected = &event->event_info.disconnected;
I haven't seen examples anywhere of getting this information with the esp_event Library Event Loop though.
Thanks
ie: static void event_handler(void* arg, esp_event_base_t event_base, int32_t event_id, void* event_data)
I understand with the legacy eventloop:
esp_err_t event_handler(void *ctx, system_event_t *event)
I can get the info:
system_event_sta_disconnected_t *disconnected = &event->event_info.disconnected;
I haven't seen examples anywhere of getting this information with the esp_event Library Event Loop though.
Thanks