Cross posting from the Inductive Forum here: MQTT Engine JSON Parsing Error on NBIRTH Payload - 3rd Party Modules - Inductive Automation Forum
Ignition Version: 8.1.38
MQTT Engine Version: 4.0.21
MQTT Transmission Version: 4.0.21
I am currently testing the MQTT Transmission and Engine Modules with HiveMQ as the broker. When I set my Transmission side server to use JSON encoding instead of protobuf the engine side stops being able to process the payloads.
I start seeing the following error on the engine side:
Looking at the NBIRTH payload it appears to be valid to me:
{
“timestamp”: 1712061288423,
“metrics”: [
{
“name”: “Node Control/Next Server”,
“timestamp”: 1712061288423,
“dataType”: “Boolean”,
“value”: false
},
{
“name”: “Node Info/Transmission Version”,
“timestamp”: 1712061288425,
“dataType”: “String”,
“value”: “4.0.21 (b2024012622)”
},
{
“name”: “bdSeq”,
“timestamp”: 1712061288423,
“dataType”: “Int64”,
“value”: 5
},
{
“name”: “Node Control/Rebirth”,
“timestamp”: 1712061288423,
“dataType”: “Boolean”,
“value”: false
}
],
“seq”: 0
}
Switching the encoding to Protobuf resolves the problem, so worst case scenario that becomes the solve, but having the payloads in JSON makes processing them easier downstream and helps at the current system testing stages.
Any thoughts would be appreciated.