-
-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MQTT message is to long #322
Comments
Did you only notice the error message or is there also a problem? |
There is a message in the LOG and PixelIT does not execute the command. |
In firmware 2.3.2 in LOG i have MQTT_callback: Incomming JSON (Length: 1405), but in firmware 2.4.3 i have |
How do you send the message? Background: In 2.4x, when the input payload and parsed json lenght mismatch, normally the json was to big or is malformed. |
I need the raw mqtt message. Maybe you could try MQTT.fx or similar, connect to your broker and subscribe to |
Thank u. I try to reproduce it in the next days. |
I get the same error. The error happens because of the check on the json length ( This means that every mqtt json must be minified before sending, otherwise this will never match. After parsing the JSON file, it does not have to be the same length as the received json. The parser will happily ignore spaces etc. You can verify this by e.g. {
"text": {
"textString": "Test It :D",
"bigFont": true,
"scrollText": "auto",
"scrollTextDelay": 20,
"centerText": false,
"position": {
"x": 8,
"y": 1
},
"color": {
"r": 255,
"g": 255,
"b": 255
},
"hexColor": "#FFFFFF"
}
} vs. {"text":{"textString":"Test It :D","bigFont":true,"scrollText":"auto","scrollTextDelay":20,"centerText":false,"position":{"x":8,"y":1},"color":{"r":255,"g":255,"b":255},"hexColor":"#FFFFFF"}} |
@smerschjohann I checked, it actually works after proper formatting of the payload, but it is very awkward to write. @foorschtbar Will this be fixed in the firmware or should I correct formating of all automations? |
Please test the 2.4.6-beta release and give us feedback |
I tested the firmware 2.4.6-beta and everything works fine |
thank u. I close this issue and hope #323 and #218 will also be fixed with this. @smerschjohann fell free to reopen you not working for you |
@foorschtbar thanks a lot, it works for me as well :) |
I upgrade firmware 2.3.2 to 2.4.3 and mqtt not work. I have error in log MQTT message is to long. How to fix the problem. In version 2.3.2 everything works good.
The text was updated successfully, but these errors were encountered: