espressif / esp-hosted

Hosted Solution (Linux/MCU) with ESP32 (Wi-Fi + BT + BLE)
Other
705 stars 167 forks source link

Where can I find enumeration of the reasons for the disconnection? #427

Open ShengjieCh opened 4 months ago

ShengjieCh commented 4 months ago

Where can I find enumeration of the reasons for the disconnection?

https://github.com/espressif/esp-hosted/blob/master/esp_hosted_fg/docs/common/ctrl_apis.md#415-struct-event_station_disconn_t GTScreenshot_20240709_144237

mantriyogesh commented 4 months ago

https://docs.espressif.com/projects/esp-idf/en/stable/esp32/api-reference/network/esp_wifi.html#_CPPv417wifi_err_reason_t

mantriyogesh commented 4 months ago

https://github.com/espressif/esp-idf/blob/3b8741b172dc951e18509698dee938304bcf1523/components/esp_wifi/include/esp_wifi_types.h#L78-L140

ShengjieCh commented 4 months ago

thanks~

ShengjieCh commented 4 months ago

Sorry, I didn't find the enumeration of 0. What is the definition of this? image

mantriyogesh commented 4 months ago

0 shouldn't have come as such.

mantriyogesh commented 4 months ago

The reason for disconnection is not populated currently for sta disconnected from ESP softap. only mac address is sent to identify which station got disconnected.

We would need to add the reason in this event. Screenshot 2024-07-09 at 7 26 58 PM

ShengjieCh commented 4 months ago

ok,thanks

ShengjieCh commented 4 months ago

Please let me know approximately when this feature will be supported.