In section "API Guide - Wi-Fi Driver" -- in sub-section "ESP32 Wi-Fi API Error Code"
Currently:
or recoverable errors, in which case you can write a recoverable-error code. For example, when esp_wifi_start returns ESP_ERR_NO_MEM, the recoverable-error code vTaskDelay can be called, in order to get a microseconds’ delay for another try.
Suggested change -- change "microseconds" to "milliseconds" because vTaskDelay is based on FreeRTOS time tic which is in multiple milliseconds.
IDF documentation suggests microsecond delay - should be millisec
Who is online
Users browsing this forum: Bing [Bot], Google [Bot] and 344 guests