Hi Folks,
I am asking for advice, not for a problem to be solved ( Even though I have a problem with timing ), so I'm not sharing code at this point as its way too much. I may do a side project at some point to emulate the issue if required and share it. Basically I need to know when I try and send a socket that the socket server is available. I've never done anything with websockets before so I'm a bit of a newb, but I have plenty of experience with Web Based work, just not sockets.
I want to use WebSockets to transfer information between the web page Submit Method and the ESP32, and also deliver the current default settings for several elements on the page such as text box on load.
I need to know how to determine when the following three cases.
WiFi.softAP("ESP32-Server","12345678"); //** When is it Available and ready
WebServer webServer(80);
webServer.begin(); //*** When this is available an ready
WebSocketsServer webSocketServer = WebSocketsServer(81);
webSocketsServer.begin(); //*** When this is available an ready
So if anyone can help directly here, or point me to an example which is similar which is known working then that would be most helpful.
Thanks in advance.