Page 1 of 1

esp_wifi_scan_start() and stack size

Posted: Mon Jan 08, 2024 10:43 am
by jtredez
Hello,

My board is an ESP8266, wroom-02.
I use Freertos, in a task I call esp_wifi_scan_start(), depending of the number of access point found the application crash (Stack canary watchpoint triggered).
I understand (from the documentation) esp_wifi_scan_start() allocate it's data to my task stack. But I can't know in advance how many AP found and I can't allocate to many space to avoid the crash.

Is there a way to limit the number of AP searched by the esp_wifi_scan_start() or another way of scanning using a know memory size?

Thank you

Re: esp_wifi_scan_start() and stack size

Posted: Fri Jan 12, 2024 3:14 pm
by jtredez
I found the solution by limiting the number of AP scanned into the sdkconfig.