Search found 6 matches

by stonehouse
Mon Mar 11, 2024 12:47 pm
Forum: ESP-IDF
Topic: WiFi station no longer finds APs after 5 minutes of scanning
Replies: 10
Views: 3911

Re: WiFi station no longer finds APs after 5 minutes of scanning

Thank you, I have found the mistake. For whatever reason, I had used a malloc for the AP list during the scan, but forgot to release the memory again (classic). I have now removed all mallocs from the code
by stonehouse
Mon Mar 11, 2024 10:38 am
Forum: ESP-IDF
Topic: WiFi station no longer finds APs after 5 minutes of scanning
Replies: 10
Views: 3911

Re: WiFi station no longer finds APs after 5 minutes of scanning

I added to the code that the ESP should restart if it detects 0 APs 20 times in a row. I let the log run on the side so that I can see how many scans the ESP performs until it finds no more APs. This is the result: Number of WiFi scans in area 1: 120 Number of WiFi scans in area 2: 109 Number of WiF...
by stonehouse
Fri Mar 08, 2024 12:34 pm
Forum: ESP-IDF
Topic: WiFi station no longer finds APs after 5 minutes of scanning
Replies: 10
Views: 3911

Re: WiFi station no longer finds APs after 5 minutes of scanning

Thank you for your answer. I don't think it's a memory leak, I've already doubled the available memory for the task and checked to see if it changes anything about the time. The scanning does not stop after the 5 minutes, I can see that in the log. The ESP keeps scanning, but the WiFi stack tells me...
by stonehouse
Thu Mar 07, 2024 6:15 pm
Forum: ESP-IDF
Topic: WiFi station no longer finds APs after 5 minutes of scanning
Replies: 10
Views: 3911

WiFi station no longer finds APs after 5 minutes of scanning

Hello everyone, I am currently working on an application for the ESP32S2 in which a WiFi station searches for APs whose SSID starts with a certain prefix. The station should search until it finds such an AP. I have a log running in the background. From this I can conclude the following: The station ...
by stonehouse
Wed Mar 22, 2023 8:02 am
Forum: General Discussion
Topic: Usage of UART0 RX pin on ESP32-S2
Replies: 0
Views: 923

Usage of UART0 RX pin on ESP32-S2

Hello all, I am currently trying to communicate with a host controller via UART0 using the ESP32-S2-DevKitC-1. I can send from the ESP32 to the host controller, but not receive from it. However, if I put the UART0 RX pin on a GPIO other than GPIO44, then it works. I wonder why I can't use GPIO44? Be...