Page 1 of 1

No WiFi SSIDs in result after scanning

Posted: Tue Aug 13, 2024 11:53 am
by jwolf02
Hello,

I am currently fighting against the WiFi scan in the ESP32. Occasionally when I trigger a scan it gets executed successfully and results are returned by the callback (I am using it in the non-blocking mode) but then the SSIDs are just empty strings besides all the other parameters like RSSI or encryption type seem to be set appropriately. This problem is persistent but sometimes it goes away after a restart.
Has anybody else encountered something like that?

Btw. I am using ESP-IDF v4.4.1.

Re: No WiFi SSIDs in result after scanning

Posted: Wed Aug 14, 2024 4:20 pm
by aliarifat794
You can try optimizing your code to use less memory, or perform a reset or cleanup before starting the scan to free up memory.

Re: No WiFi SSIDs in result after scanning

Posted: Thu Aug 15, 2024 1:37 pm
by jwolf02
I do not think this is the issue. I only use about 50% of the available RAM.
Moreover the SSID in the structure is stored as
  1. char ssid[33];
so it has to be allocated anyway therefore memory cannot be the issue why this does not work.