Using WebSockets Client + WebServer module in the same program causes error "This socket is closed" #7068
Replies: 1 comment
-
Posted at 2018-02-07 by Wilberforce I suggest you post a simplied version of your code. Posted at 2018-02-08 by espftw Sorry for the delayed response, I was dissecting the code and finding the exact moment where it goes wrong. I seem to have found that as soon as In the callbacks below, if you halt execution of Seems weird that the previous ones don't work either, but the server never receives the data if
Posted at 2018-02-09 by Wilberforce Why don't you call Posted at 2018-02-09 by espftw If the |
Beta Was this translation helpful? Give feedback.
-
Posted at 2018-02-07 by espftw
Just curious if there's a fundamental reason this isn't working. If I disable the
WebServer
that is served over anAccessPoint
, theWebSocket
transmission is successful. If I delay the initiation of theWebServer
andAccessPoint
, theWebSocket
transmission is successful all the way up until theWebServer
andAccessPoint
are created.The main goal is to accept data from a non-Espruino device (plain Arduino) via an HTTP request to the
WebServer
on theEspruino
board, and then relay that data viaWebSockets
to the remote server. I'm not sure if this is the best way of achieving this, any guidance is appreciated.Beta Was this translation helpful? Give feedback.
All reactions