Connection to MQTT Broker failed "-rc 4" #24729
Unanswered
in2itiv
asked this question in
Support request
Replies: 1 comment 3 replies
-
|
As documented, the meaning of rc -4 is "the server didn't respond within the keepalive time". Thus the issue is outside of Tasmota, related to the connection to your broker, or it being slow to respond. There are commands to tweak MQTT-related timeout values. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
i'm trying to read out the data from a smart meter (https://www.smartcircuits.de/ - no advertising, just to clarify!).
Data is display on the smart meters web interface correctly and can be polled via HTTPS+JSON without any error from my endpoint (openDTU on battery).
But now I want to gather all my data on my Raspberry (Model 4b) with ioBroker to publish it via MQTT. Therefore i activated and configured the MQTT connection, but the connection to my mqtt broker won't be established - error:
Connect failed to 192.168.179.4:1887, rc -4. Retry in 120 sec.Since i'm already running a MQTT Broker on my Raspberry to gather other sensor data i had to switch the MQTT Port of the SonOff Adapter from default to 1887.
On the other end (broker) it reads out the sensors' name, so i assume a connection was established for a short moment. Unfortunately no sensor data was exchanged.
Now the really strange part...
It worked up to last week on Tasmota 14.4.1 and stopped somehow unrecognized. Since then i had no luck getting it back to an operating state, so i updated the smart meter Tasmota version to 15.3.0. This did not solve the issue. It worked for a few hours, then suddenly stopped and won't connect properly since this afternoon - resulting in the same error msg mentioned above (
rc -4)I'm expecting a sensor value string like this (extract from https+json).
by the way... it's the same error msg connecting to sonoff adapter or any other mqtt-broker, no matter if mosquitto from homeassistant (already tried..), mqtt from ioBroker or sonoff.
Thanks for any hints in advance!
Beta Was this translation helpful? Give feedback.
All reactions