Library to print enum names

brazoayeye
Posts: 41
Joined: Sun May 03, 2020 2:37 pm

Library to print enum names

Postby brazoayeye » 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

Who is online

Users browsing this forum: Gaston1980, Google [Bot] and 371 guests