This iot-agent is ONLY FOR TRAINING PURPOSES.
If a dojot's device has a static attribute 'SN' (Serial Number), it must publish to MQTT topic:
/_dojot/{REPLACE BY SN}/attrs
Otherwise, it must publish to topic:
/{REPLACE BY TENANT}/{REPLACE BY DEVICE ID}/attrs
In the first case, all dojot's devices with the same SN will receive a copy of the message. In the second case, a single dojot's device will receive the message.
To receive data from multiple dojot's devices, the physical device must subscrite to MQTT topic:
/_dojot/{REPLACE BY SN}/config
So, any actuation for a dojot's device with 'SN' static attribute will be forwarded to this physical device.
To receive data from a single device, it must subscrite to MQTT topic:
/{REPLACE BY TENANT}/{REPLACE BY DEVICE ID/config