Re: Multiple variables using a for statement? Server/STA Mod
Posted: Mon May 21, 2018 10:40 am
I've been working on this a bit over the weekend and am now giving serious thought to using websockets rather than udp to survey the status of my switches. The question is, "Can a sketch run two instances of websockets client at one time?"
My current switch sketch already uses
and
Can it simultaneously use
Then handle both websockets events in my void(webSocketEvent)?
My current switch sketch already uses
Code: Select all
webSocket.begin("somewhere.com", 80, "/");
and
Code: Select all
;webSocket.onEvent(webSocketEvent)
Can it simultaneously use
Code: Select all
webSocket.begin("192.168.0.123", 81, "/");
Then handle both websockets events in my void(webSocketEvent)?