setup

Treon Device Management

The SystemDevice management system has three main components: Backend: sends dm commands and analyses the responses Targets: objects to be managed. Objects may contain several resources that are managed

How to set up the MQTT connection

MQTT is a network protocol that transports messages inbetween devices. Connect to the Treon Gateway by using SSH. Add a configuration file (ending in .conf) to /opt/iotgw/conf.

Treon Device Management: Interfaces

Command Message The backend sends device management commands as JSON serialized messages over MQTT. { "Ver": "<version>", "Type": "dm", "Cmd": "<command>", "I": "<index>", "T": "<target>", "Res": "<resource array>", "Val": "<value array>", "Nid" : "<node id>", "Gid" : "<group id>" }  

How to set up an MQTT broker

An MQTT broker can be used to monitor your Node data and to send DM messages to the Gateway. You can easily setup an MQTT broker on your computer for testing or configuration purposes.

How to modify MQTT subtopics

By changing cloud adapters configuration from /opt/iotgw/conf.d by adding file with name ending with .conf you can change mqtt pub/sub topics. This can be done with for example “nano /opt/iotgw/conf.d/mqtt_topics.conf” and adding configuration below to the file.