Moderators: grovkillen, Stuntteam, TD-er
-
zamzon37
- Normal user
- Posts: 12
- Joined: 06 Aug 2017, 19:38
#1
Post
by zamzon37 » 29 Nov 2017, 21:30
Hi
I have some Sonoff ESP8266 and some Sonoff s20 Esp8285
they always lose the connection to my mosquitto broker on my raspberry pie
Code: Select all
WD : Uptime 56 ConnectFailures 206 FreeMem 21592
MQTT : Connection lost
MQTT : Connected to broker
Subscribed to: /outlet2/#
WD : Uptime 56 ConnectFailures 208 FreeMem 21592
MQTT : Connection lost
MQTT : Connected to broker
Subscribed to: /outlet2/#
WD : Uptime 57 ConnectFailures 210 FreeMem 21592
MQTT : Connection lost
MQTT : Connected to broker
Subscribed to: /outlet2/#
WD : Uptime 57 ConnectFailures 212 FreeMem 21592
MQTT : Connection lost
MQTT : Connected to broker
Subscribed to: /outlet2/#
WD : Uptime 58 ConnectFailures 214 FreeMem 21592
MQTT : Connection lost
MQTT : Connected to broker
Subscribed to: /outlet2/#
WD : Uptime 58 ConnectFailures 216 FreeMem 21592
MQTT : Connection lost
MQTT : Connected to broker
Subscribed to: /outlet2/#
WD : Uptime 59 ConnectFailures 218 FreeMem 21592
MQTT : Connection lost
MQTT : Connected to broker
Subscribed to: /outlet2/#
WD : Uptime 59 ConnectFailures 220 FreeMem 21592
MQTT : Connection lost
MQTT : Connected to broker
Subscribed to: /outlet2/#
WD : Uptime 60 ConnectFailures 222 FreeMem 21592
MQTT : Connection lost
MQTT : Connected to broker
Subscribed to: /outlet2/#
WD : Uptime 60 ConnectFailures 224 FreeMem 21592
MQTT : Connection lost
MQTT : Connected to broker
Subscribed to: /outlet2/#
WD : Uptime 61 ConnectFailures 226 FreeMem 21592
MQTT : Connection lost
MQTT : Connected to broker
Subscribed to: /outlet2/#
WD : Uptime 61 ConnectFailures 228 FreeMem 21592
MQTT : Connection lost
MQTT : Connected to broker
Subscribed to: /outlet2/#
WD : Uptime 62 ConnectFailures 230 FreeMem 21592
MQTT : Connection lost
MQTT : Connected to broker
Subscribed to: /outlet2/#
WD : Uptime 62 ConnectFailures 232 FreeMem 21592
MQTT : Connection lost
MQTT : Connected to broker
Subscribed to: /outlet2/#
WD : Uptime 63 ConnectFailures 234 FreeMem 21592
MQTT : Connection lost
MQTT : Connected to broker
Subscribed to: /outlet2/#
WD : Uptime 63 ConnectFailures 236 FreeMem 22416
MQTT : Connection lost
MQTT : Connected to broker
Subscribed to: /outlet2/#
WD : Uptime 64 ConnectFailures 238 FreeMem 22416
MQTT : Connection lost
MQTT : Connected to broker
Subscribed to: /outlet2/#
WD : Uptime 64 ConnectFailures 240 FreeMem 22416
MQTT : Connection lost
MQTT : Connected to broker
Subscribed to: /outlet2/#
WD : Uptime 65 ConnectFailures 242 FreeMem 22416
MQTT : Connection lost
MQTT : Connected to broker
Subscribed to: /outlet2/#
WD : Uptime 65 ConnectFailures 244 FreeMem 22416
MQTT : Connection lost
MQTT : Connected to broker
Subscribed to: /outlet2/#
WD : Uptime 66 ConnectFailures 246 FreeMem 22416
MQTT : Connection lost
MQTT : Connected to broker
Subscribed to: /outlet2/#
WD : Uptime 66 ConnectFailures 248 FreeMem 22416
MQTT : Connection lost
MQTT : Connected to broker
Subscribed to: /outlet2/#
I have following Sonoff devices, and they all have the same issue
one Sonoff ESP8266 Relay running Build 120
one Sonoff S20 ESP8285 running Build 148
one Sonoff S20 ESP8185 running v2.0.0-dev12
one NodeMCU running (custom) firmware
My openhab server is also connected to the broker, and it is working fine when I test to send messages to the broker. I am using MQTTlens to see the messages.
-
enesbcs
- Normal user
- Posts: 587
- Joined: 18 Jun 2017, 11:02
- Location: Békéscsaba, Hungary
#2
Post
by enesbcs » 30 Nov 2017, 07:18
zamzon37 wrote: ↑29 Nov 2017, 21:30
Code: Select all
WD : Uptime 56 ConnectFailures 206 FreeMem 21592
MQTT : Connection lost
MQTT : Connected to broker
Subscribed to: /outlet2/#
WD : Uptime 56 ConnectFailures 208 FreeMem 21592
MQTT : Connection lost
MQTT : Connected to broker
Subscribed to: /outlet2/#
WD : Uptime 57 ConnectFailures 210 FreeMem 21592
MQTT : Connection lost
MQTT : Connected to broker
Subscribed to: /outlet2/#
WD : Uptime 57 ConnectFailures 212 FreeMem 21592
MQTT : Connection lost
MQTT : Connected to broker
Subscribed to: /outlet2/#
WD : Uptime 58 ConnectFailures 214 FreeMem 21592
MQTT : Connection lost
MQTT : Connected to broker
Subscribed to: /outlet2/#
WD : Uptime 58 ConnectFailures 216 FreeMem 21592
MQTT : Connection lost
MQTT : Connected to broker
Subscribed to: /outlet2/#
WD : Uptime 59 ConnectFailures 218 FreeMem 21592
MQTT : Connection lost
MQTT : Connected to broker
Subscribed to: /outlet2/#
WD : Uptime 59 ConnectFailures 220 FreeMem 21592
MQTT : Connection lost
MQTT : Connected to broker
Subscribed to: /outlet2/#
WD : Uptime 60 ConnectFailures 222 FreeMem 21592
MQTT : Connection lost
MQTT : Connected to broker
Subscribed to: /outlet2/#
WD : Uptime 60 ConnectFailures 224 FreeMem 21592
MQTT : Connection lost
MQTT : Connected to broker
Subscribed to: /outlet2/#
WD : Uptime 61 ConnectFailures 226 FreeMem 21592
MQTT : Connection lost
MQTT : Connected to broker
Subscribed to: /outlet2/#
WD : Uptime 61 ConnectFailures 228 FreeMem 21592
MQTT : Connection lost
MQTT : Connected to broker
Subscribed to: /outlet2/#
WD : Uptime 62 ConnectFailures 230 FreeMem 21592
MQTT : Connection lost
MQTT : Connected to broker
Subscribed to: /outlet2/#
WD : Uptime 62 ConnectFailures 232 FreeMem 21592
MQTT : Connection lost
MQTT : Connected to broker
Subscribed to: /outlet2/#
WD : Uptime 63 ConnectFailures 234 FreeMem 21592
MQTT : Connection lost
MQTT : Connected to broker
Subscribed to: /outlet2/#
WD : Uptime 63 ConnectFailures 236 FreeMem 22416
MQTT : Connection lost
MQTT : Connected to broker
Subscribed to: /outlet2/#
WD : Uptime 64 ConnectFailures 238 FreeMem 22416
MQTT : Connection lost
MQTT : Connected to broker
Subscribed to: /outlet2/#
WD : Uptime 64 ConnectFailures 240 FreeMem 22416
MQTT : Connection lost
MQTT : Connected to broker
Subscribed to: /outlet2/#
WD : Uptime 65 ConnectFailures 242 FreeMem 22416
MQTT : Connection lost
MQTT : Connected to broker
Subscribed to: /outlet2/#
WD : Uptime 65 ConnectFailures 244 FreeMem 22416
MQTT : Connection lost
MQTT : Connected to broker
Subscribed to: /outlet2/#
WD : Uptime 66 ConnectFailures 246 FreeMem 22416
MQTT : Connection lost
MQTT : Connected to broker
Subscribed to: /outlet2/#
WD : Uptime 66 ConnectFailures 248 FreeMem 22416
MQTT : Connection lost
MQTT : Connected to broker
Subscribed to: /outlet2/#
Please make sure that on your all ESPEasy unit in your network under the "Config" section the "Unit Number" is not zero, and a unique number from 1 to 31. Then submit and make a Reboot. (Located under tools)
I had the same log messages, and after i do the above steps on all of my ESPEasy devices, the error message gone.

-
zamzon37
- Normal user
- Posts: 12
- Joined: 06 Aug 2017, 19:38
#3
Post
by zamzon37 » 30 Nov 2017, 09:51
Hi
It worked, thanks
Do you know how to make the Sonoff devices to see each other.
So all the ESPEasy devices on the network are shown on the start screen on every esp device.
-
Shardan
- Normal user
- Posts: 1156
- Joined: 03 Sep 2016, 23:27
- Location: Bielefeld / Germany
#4
Post
by Shardan » 30 Nov 2017, 10:30
In Tools --> Advanced check the "Global Sync" box and set up a UDP port.
I'd recommend a very high port number like 64123 to keep off from already used UDP ports (65535 is highest possible...)
Set all devices to the same port.
It takes a while until all devices show up, be patient
Regards
Shardan
Regards
Shardan
Who is online
Users browsing this forum: Anthropic Claude Bot [bot] and 21 guests