Skip to main content

Telemetry

If you don't yet have any of these hardware devices, don't worry. In this tutorial, we will use the RL-6 simulator.

Get the simulator source code from here and setup a Standalone UCM as described in the tutorial:

  • Create device in the cloud.
  • Upload blueprint via enapter CLI.
  • Run Standalone UCM via docker_run.sh.

Find Device ID (Api ID) on the device page and subscribe to its telemetry:

mosquitto_sub -v -p 9883 -h <GATEWAY_IP_ADDRESS> -u public -P public -t "telemetry/v2/<device-id>"

You should see something like that:

telemetry/v2/<device-id> {"timestamp":1664851516,"r1":false,"r2":false,"r3":false,"r4":false,"r5":false,"r6":false}
telemetry/v2/<device-id> {"timestamp":1664851517,"r1":false,"r2":false,"r3":false,"r4":false,"r5":false,"r6":false}
telemetry/v2/<device-id> {"timestamp":1664851518,"r1":false,"r2":false,"r3":false,"r4":false,"r5":false,"r6":false}

Try to execute command via cloud interface:

Enable load, screenshot 1 Enable load, screenshot 2

The subscription output should change:

telemetry/v2/<device-id> {"timestamp":1664851975,"r1":false,"r2":false,"r3":false,"r4":true,"r5":false,"r6":false}
telemetry/v2/<device-id> {"timestamp":1664851976,"r1":false,"r2":false,"r3":false,"r4":true,"r5":false,"r6":false}

Please spot, that r4 change from false to true.

All Rights Reserved © 2024 Enapter AG.