Jump to content
Shelly wiring diagram Now LIVE ×
🌟 NEW Shelly Products Reveal Video! 🌟 NEUE Shelly-Produkte-Enthüllungsvideo! 🌟 ×

"shos_mqtt_conn.c:523 MQTT0: Disconnected" when sending requests with very long src parameter


CKN

Recommended Posts

Hi,

while testing the Shelly MQTT API i noticed a possible bug. For very long src parameters (and thus very long topics the shelly sends to), the Shelly momentarily loses the connection to the MQTT broker with the log message: "shos_mqtt_conn.c:523 MQTT0: Disconnected". This behaviour can be reproduced with the following MQTT message sent to the Shelly:

{
  "id": 0,
  "method": "Switch.Toggle",
  "params": {
    "id": 0
  },
  "src": "ThisIsAVeryLongStringWithALotOfCharactersThatCausesTheShellyToLoseConnectionWhichIsAProblemAndCanNotBeFoundInTheDocumentationYetAsALimitation"
}

 

Did anyone else stumble on this yet? A limitation to the length there would be understandable, but the lack of any specific response or mentions in the documentation give the impression, that this is not the wanted behaviour, but rather a bug in the firmware.

 

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...