Your new topic does not fit any of the above??? Check first. Then post here. Thanks.

Moderator: igrr

User avatar
By karin8266
#86297 I have an ESP8266 project using the NODEMCU platform. My code creates an Access Point, it then sets up a UDP client to receive packets. This works correctly. I am able to receive a UDP packet that contains the SSID and Password that I plan to use to connect the NODEMCU to the local router network. This works also. I am then able to use the SSID and Password in the NODEMCU code to exit WIFI_ AP mode, change to WIFI_STA mode then connect to the local router network. My question is since I never actually closed the UDP socket created in AP mode, is it still active and available to the NODEMCU in STA mode? Or do I have to first close out the previous UDP socket then open a new one in STA mode?