Unable to run "sta+ap" on my ESP32S #7151
Replies: 1 comment
-
Posted at 2019-07-17 by Unreality and here's what happened when I try to startAP and also connect wifi:
Posted at 2019-07-17 by Robin Wed 2019.07.17 @unreality, Is this a continuation of the snippets that were provided in #10 at
Posted at 2019-07-17 by Unreality Hi thx for asking, that was ESP8266, now I'm trying ESP32 Posted at 2019-07-18 by Unreality okay, found out that after ESP32S serving as an AP, and connected with a client, then i need to disconnect it and wait for 10+ seconds before change it to station mode and connect to local wifi, however, after a minute or so, it will start to prompt errors :
Posted at 2019-07-18 by Unreality Would like to have some help, thanks! Posted at 2019-07-18 by AkosLukacs Looks like runs out of memory. Are you doing anything that may cause the out of memory or a memory leak? Posted at 2019-07-18 by Unreality Sorry let me be more specific for this question the above snippets are after Posted at 2019-07-18 by Unreality it's not out of memory, as process.memory() still showing a lot of memory available Posted at 2019-07-18 by AkosLukacs I'm not an expert in ESP32's memory, but AFAIK there is a separate amount of memory for the underlying Espressif RTOS. Used for networking & stuff. And those If you don't use BLE, maybe you can try to disable BLE by calling Posted at 2019-07-18 by hungryforcodes Sounds like heap memory is incredibly low! Not sure what the cause of it could be. Did you try downgrading the firmware to 1v97-1v98? These use an earlier version of the Espressif SDK. Maybe could help -- just guessing. Posted at 2019-07-19 by Unreality Yes it seems ESP32 wifi station connect eats up all heap memory! This is what happened after a
You can see that the freeHeap dropped dramatically after connecting to the local network! |
Beta Was this translation helpful? Give feedback.
-
Posted at 2019-07-17 by Unreality
Here's what happened for my newly flashed ESP32S
so how to make my ESP32S to support "sta+ap" ?
This MCU can run both mode when I script it in Arduino, but when I script it in Espruino, it will automatically disconnect station wifi when it has Access point on.
also, how to fix "E (536) spiram: SPI RAM enabled but initialization failed. Bailing out." ?
thanks for reading
Beta Was this translation helpful? Give feedback.
All reactions