MC100
Mobile programmable gateway
MC Technologies GmbH, Kabelkamp 2, 30179 Hannover, Germany
Tel: +49511 67 69 99-0, Fax: +49511 67 69 99-150, Website & Shop: www.mc-technologies.net, Email: info@mc-technologies.net
59
XML
XML output interprets the message and produces an XML output.
Example on xml output:
json_hex
It is also possible to get the data in a json format that is easier to read than pure hex
Example on json_hex output
Send Messages to REST API
It is possible to send the messages to a REST-API, by passing the command line „parameter
–u“. For example, this can be used to send messages to the internal node-red server on the
mc100:
root@ mcwmbus -u http://localhost:1880/wmbus
Or it can be used in combination with the integrated modem, to send messages to a server
running in the cloud to have real time data available on your workstation.
<?xml version="1.0" encoding="ISO-8859-1"?>
<MBusData>
<SlaveInformation>
<Id>41000002</Id>
<Manufacturer>SEO</Manufacturer>
<Version>1</Version>
<ProductName>Sensoco Wireless M¬Bus 2 NTC Temperature
Sensor</ProductName>
<Medium>Ambient Sensor</Medium>
<AccessNumber>157</AccessNumber>
<Status>00</Status>
<Signature>0000</Signature>
</SlaveInformation>
<DataRecord id="0">
<Function>Instantaneous value</Function>
<StorageNumber>0</StorageNumber>
<Unit>External temperature (1e-1 deg C)</Unit>
<Value>232</Value>
<Timestamp>2020-06-09T07:52:03Z</Timestamp>
</DataRecord>
<DataRecord id="1">
<Function>Instantaneous value</Function>
<StorageNumber>0</StorageNumber>
<Unit>External temperature (1e-1 deg C)</Unit>
<Value>233</Value>
<Timestamp>2020-06-09T07:52:03Z</Timestamp>
</DataRecord>
</MBusData>
{"timestamp":"2020-06-09T09:53:47.295+0200","LEN": "22","C":
"44","MAN": "4caf","UID": "41000002","VER": "01","DEV": "1b","CI":
"7a","COUNTER": "a7","STATUS": "00","ENCRYPTION": "0000","DATA":
"0266e8000266e800"}