esp_wifi_scan_start() and stack size

jtredez
Posts: 2
Joined: Mon Jan 08, 2024 10:15 am

esp_wifi_scan_start() and stack size

Postby jtredez » 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

jtredez
Posts: 2
Joined: Mon Jan 08, 2024 10:15 am

Re: esp_wifi_scan_start() and stack size

Postby jtredez » Fri Jan 12, 2024 3:14 pm

I found the solution by limiting the number of AP scanned into the sdkconfig.

Who is online

Users browsing this forum: Google [Bot], Majestic-12 [Bot] and 110 guests