Library to print enum names
Posted: Tue Aug 29, 2023 7:29 am
Hello,
there are a lot of enum in esp-idf and it's a little uncomfortable to print them directly as int for debug, because I must open code or browser to check the meaning of the number.
I uses esp_err_to_name for esp_err_t, but it will be useful to have a similar function for wifi_event_t, wifi_err_reason_t and so on.
Is there something like that?
Thanks
there are a lot of enum in esp-idf and it's a little uncomfortable to print them directly as int for debug, because I must open code or browser to check the meaning of the number.
I uses esp_err_to_name for esp_err_t, but it will be useful to have a similar function for wifi_event_t, wifi_err_reason_t and so on.
Is there something like that?
Thanks