Skip to content

esp32: Use check_esp_err() for get error message.#8830

Closed
IhorNehrutsa wants to merge 1 commit into
micropython:masterfrom
IhorNehrutsa:esp_exceptions_helper
Closed

esp32: Use check_esp_err() for get error message.#8830
IhorNehrutsa wants to merge 1 commit into
micropython:masterfrom
IhorNehrutsa:esp_exceptions_helper

Conversation

@IhorNehrutsa
Copy link
Copy Markdown
Contributor

I suggest making the path to understanding the error easier.

First, all esp-idf errors will have native error messages. For example:
ESP_ERR_ESP_NETIF_DNS_NOT_CONFIGURED will be output, not
Wifi Unknown Error 0x500A

Second, ESP_ERR_XXX_XXX error codes have more info in Google search requests.

@MATTYGILO
Copy link
Copy Markdown

Same problem

@IhorNehrutsa IhorNehrutsa force-pushed the esp_exceptions_helper branch 2 times, most recently from ff6669d to 609115a Compare July 21, 2023 13:34
@IhorNehrutsa
Copy link
Copy Markdown
Contributor Author

@robert-hh
May you review this PR?
Thanks

@robert-hh
Copy link
Copy Markdown
Contributor

That PR seems useful for all users, and there is no change in code size. Looks good.

@IhorNehrutsa
Copy link
Copy Markdown
Contributor Author

doc/esp32/quickref.rst: Add Error handling.

esp32/network_common.c: Use esp_err_to_name() to get error message.

Signed-off-by: IhorNehrutsa <Ihor.Nehrutsa@gmail.com>
@IhorNehrutsa
Copy link
Copy Markdown
Contributor Author

Closed in favor #10888

tannewt pushed a commit to tannewt/circuitpython that referenced this pull request Jan 30, 2024
shared-module/usb_hid: allow HID to wake sleeping host computer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants