How to send a ZCL command to a device or gateway via DigiCloud

I’d like to send commands to a device (e.g. SafePlug) but I cannot find how to do it in the programming guide.

The commands I want to execute are

  • read_attributes
  • send_ZCL
  • start_reports
  • stop_reports
  • etc.

I can execute above commands in the debug console (https://digi-se.appspot.com) but I don’t know how to do it via Device Cloud web service.

If you have any idea about this, please let me know. Thanks!

From the API Explorer, you can get read attributes with the following syntax with the following showing the meter reading attribute:

/ws/DataPoint/se/attr/00000000-00000000-00409DFF-FFXXXXXX/00:11:22:33:44:55:66:77/1/0/1794/0?

You would fill in your Device ID and the EUI 64 address for the end node.

ZCL example from API Explorer path /ws/sci:

00:11:22:33:44:55:66:77
0x5E
0x10
0x0003
0
false
0x00
1
1E00

Reporting example can be found here, along with other useful examples for Smart Energy:

http://ftp1.digi.com/support/documentation/90001195_C.pdf