← index #7368Issue #11166
Off-topic · high · value 2.980
QUERY · ISSUE

esp32 cannot create thread after opening ap

openby china-zhangdjopened 2021-06-08updated 2021-06-12

why esp32 cannot create thread after opening ap.

CANDIDATE · ISSUE

Enable AP mode on ESP32 and enable TCP socket. After a few hours (overnight), the phone can connect to ESP32, but it cannot use TCP socket. It is preliminarily determined that the socket has been recycled by the system due to a long time of not connecting to ESP32 (gc has been disabled). The requirement of my current project is that the socket always exists and not be recycled by the system. How to set it up?

closedby drc5521opened 2023-03-31updated 2025-02-04
enhancementproposed-close

Enable AP mode on ESP32 and enable TCP socket. After a few hours (overnight), the phone can connect to ESP32, but it cannot use TCP socket. It is preliminarily determined that the socket has been recycled by the system due to a long time of not connecting to ESP32 (gc has been disabled). The requirement of my current project is that the socket always exists and not be recycled by the system. How to set it up?

Keyboard

j / / n
next pair
k / / p
previous pair
1 / / h
show query pane
2 / / l
show candidate pane
c
copy suggested comment
r
toggle reasoning
g i
go to index
?
show this help
esc
close overlays

press ? or esc to close

copied