esp_wifi_scan_start() and stack size
Posted: Mon Jan 08, 2024 10:43 am
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
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