I`m trying to make a web socket server with the wifi dipcortex , and found it I could not get it to connect if you just use "wifi.connect_non_blocking((uint8_t *)SSID, (uint8_t *)AP_KEY, AP_SECURITY);" once , but you use the command twice it works .
eg
wifi.connect_non_blocking((uint8_t *)SSID, (uint8_t *)AP_KEY, AP_SECURITY);
wifi.connect_non_blocking((uint8_t *)SSID, (uint8_t *)AP_KEY, AP_SECURITY);
it connect a couple of seconds later !!!!
any documentation on how to make a socket server , eg now to listen to a port , receive to incoming tcp connection ?