Search found 2 matches

by fiveowle5
Tue Jan 14, 2020 9:12 am
Forum: ESP-IDF
Topic: ESP32 define custom esp_err_t errors and best practice
Replies: 4
Views: 6934

Re: ESP32 define custom esp_err_t errors and best practice

Thanks for your responses. In that case I will implement my own enums.
by fiveowle5
Thu Jan 09, 2020 1:10 pm
Forum: ESP-IDF
Topic: ESP32 define custom esp_err_t errors and best practice
Replies: 4
Views: 6934

ESP32 define custom esp_err_t errors and best practice

Hello all,

Is it possible to define custom esp_err_t types in addition to the existing esp errors?

I can see the definition of the esp error codes in some header files. It defines an error base + the unique error number as hex.
For instance in esp_ota_ops.h:

#define ESP_ERR_OTA_BASE 0x1500 ...

Go to advanced search