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
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.
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>" }
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.
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.