ML-x17 DATA LOGGER MANUAL
Manufacturers of low power instruments
page 115
4.45.4 Datatype
All parameters will be exposed as datatype 10 (double) even totalizers and digital inputs.
4.45.5 Message examples
Please find below examples of YDOC NBIRTH, NDEATH and NDATA messages. Sparkplug-B payload is
formatted in Google Protocol Buffer format and therefor human unreadable. We have represented the
examples below in JSON format for readability purpose only.
4.45.5.1
NBIRTH
Topic: spBv1.0/sp-grp-x/NBIRTH/5025064
Up to 64 parameters/channels can be included and referred to by aliases 1 till 64. Their names, as
described before, are user definable.
{
"timestamp": 1486144902122,
"metrics":
[
{ "name":"bdSeq", "timestamp":1486144902122, "dataType":"Uint64",
"value":0 },
{ "name":"Properties/Hardware Make", "timestamp":1486144902122,
"dataType":"String", "value":"YDOC"},
{ "name": "Properties/Hardware Model", "timestamp": 1486144902122,
"dataType": "String", "value": "ML-417ADS" },
{ "name": "Properties/FW", "timestamp": 1486144902122,
"dataType": "String", "value": "4.4B8" },
{ "name": "Properties/SN", "timestamp": 1486144902122,
"dataType": "String", "value": "1234567890"},
{ "name": "System/Battery", "alias":1, "timestamp": 1486144902122,
"dataType": "Double", "value": 3.3}
{ "name": "Inputs/AI1", "alias":2, "timestamp": 1486144902122,
"dataType": "Double", "value": 14.2}
{ "name": "Inputs/AI2", "alias":3, "timestamp": 1486144902122,
"dataType": "Double", "value": 9.5}
{ "name": "Counters/CNT1", "alias":4, "timestamp": 1486144902122,
"dataType": "Double", "value": 1234567}
{ "name":"Calculations/FLW1", "alias":5, "timestamp":1486144902122,
"dataType":"Double","value":84.7}
],
"seq": 0
}