Open juancgalvez opened 6 years ago
I was having the same problem on m Raspberry pi 3. So I changed to Windows and now the disconnection rate is much, much less.
Thank you for your reply.
I upgraded my Sonoff to firmware version 1.6 and everything stopped working. The device didn't even connect to itead's server.
Finally, I flashed Espurna and everything is working fine with Node-red using MQTT and HTTP API.
It looks like the updated firmware does an SSL certificate validation, so it will not work.
On disconnecting every time, it happens to me too ... Even in the Java implementation I did. But, it reconnects again ... but this seems to me to be a problem
It seems to me that some PING / PONG control is missing in particular.
@juancgalvez upgrading to 1.6 will break the the used interface due to a verified ssl certificate mirko/SonOTA#58
@ricardojlrufino I would search for the disconnects inside your local network or an software. Using OpenHab on a Raspberry runs fine, without unexpected disconnects
I implemented a java version, and a fixed a BUG in PING, because it have no data... A library I used had this problem
I tried with node-red-contrib-sonoff-server and noticed that after exactly one minute the device times out and disconnects.
Then I installed your software and the same thing happens exactly one minute after the device connects for the first time, and never reconnects again.
This is what I get:
What could be wrong?