Page 1 of 1

IDF documentation suggests microsecond delay - should be millisec

Posted: Sat Dec 08, 2018 5:00 pm
by jhinkle
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.