Closed contact-circularblue closed 7 years ago
SOLUTION: Added client.loop() after every subscription in the client code. Worked for us. We are using pubsubclient for esp8366 (https://github.com/knolleary/pubsubclient). ISSUE: marvinroger/homie-esp8266#11
SERVER LOGS: {"name":"mosca","hostname":"dev0003","pid":14618,"client":"push/4409b077adf1f29","level":40,"err":{"message":"read ECONNRESET","name":"Error","stack":"Error: read ECONNRESET\n at errnoException (net.js:904:11)\n at TCP.onread (net.js:558:19)","code":"ECONNRESET"},"msg":"read ECONNRESET","time":"2015-03-12T03:15:26.368Z","v":0}
The Client disconnects on more than 5 subscriptions, giving the above message on the server logs.