In this case I think it's easier than having a queue... I literally just wait until OK is received before setting the state of the socket as free. As the ESP8266 can handle 5 clients (iirc?) at the same time, it's just a matter of making sure it uses one of the other 4 :)
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
In this case I think it's easier than having a queue... I literally just wait until
OK
is received before setting the state of the socket asfree
. As the ESP8266 can handle 5 clients (iirc?) at the same time, it's just a matter of making sure it uses one of the other 4 :)