I have a Tessel 1 that is upgraded to the most recent firmware. It runs a small program that connects to a Websocket server and a relay. Everything works fine and as expected until, seemingly randomly, the Tessel fails with the following error:
Error: Socket closed.
at _new ([string "colony-init.lua"]:504)
at <anonymous> ([string "net.js"]:343)
It seems to fail anywhere between 1 and 3 hours after starting.
I've connected to the board's WiFi using the
tessel wifi CLI command.
Is this a known issue? Any possible causes?
I was thinking one possible solution would be to connect to the WiFi from within the program and then listen for failure events and then try reconnecting. Would that work?