When I start an access point (WiFi.apbegin) everything works great, but how do you stop it? I’ve tried WiFi.disconnect() and it doesnt do anything, the SSID keeps broadcasting. I want to be able to switch between the AP and Standard WiFi at will and have hit the struggle-bus hard!
Hi @angus1357,
I had tried on the on CreateWiFiAp example code and was able to disable the access point by adding WiFi.disconnect(). Furthermore, I also tested on Concurrent Mode example code, after some modification, I’m able to switch between AP and WiFi by disconnected AP follow by starting WiFi. However, simultaneous toggling between AP and WiFi within the loop function may result in errors such as stack overflow, a runtime issue that occurs when the stack memory is exhausted due to excessive function calls, recursion, or large local variables.