Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[sparkplug-wg] NBIRTH error

After a successful MQTT connection, subscription to the node command topic, I am attempting to publish an NBIRTH payload.  The broker is Ignition - CirrusLink MQTT Distributor.  The error message from Ignition's logs is:

Failed to handle Sparkplug B message on topic spBv1.0/Home/NBIRTH/NodeTest

com.google.protobuf.InvalidProtocolBufferException: Protocol message end-group tag did not match expected tag.

The payload as reported by Ignition's logs is:

content <{"timestamp":1677746244901,"metrics":[{"name":"bdSeq","timestamp":1677746244901,"dataType":"Uint64","value":16},{"name":"Node Control/Rebirth","timestamp":1677746244901,"dataType":"Boolean","value":false}],"seq":1}>
Or in human-readable format (copied from Ignition's logs, deleted "content <" and ">", applied JSON formatting):
{
    "timestamp": 1677746244901,
    "metrics": [{
            "name": "bdSeq",
            "timestamp": 1677746244901,
            "dataType": "Uint64",
            "value": 16
        }, {
            "name": "Node Control/Rebirth",
            "timestamp": 1677746244901,
            "dataType": "Boolean",
            "value": false
        }
    ],
    "seq": 1
}

This message as close as I can read matches some example messages from the specification.  I have tried using the SparkplugTCK, but it appears that this error happens too early for that tool to log, or I configured SparkplugTCK incorrectly.  Is there an embarrassing typo I didn't catch, or what are suggestions to continue troubleshooting?  Thank you for your help,

Back to the top