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
43
XML
13.4.3
XML output interprets the message and produces an XML output.
Example on xml output:
json_hex
13.4.4
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
13.5 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@MC100: ~# 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.
13.6 Writing on disk
When writing data to disk, it is possible to make parts of the path dynamic, by using the
special characters.
%M - Manufacturer ID
%D - Device Type / Medium
%U - Ident Nr.
%V
–
Version
<?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"}