You probably need to wait a bit between them - the esp 8266 (that's what you're using, right?) supports up to 5 sockets, but their protocol is ambiguous (or it was - when a socket closed, it didn't tell you which one, or something like that), and espruino doesn't use that functionality yet.
So yeah, setTimeout() is what I'd do, at least in the medium term
© Espruino, powered by microcosm.
Report a problem