There are a couple of ways to connect EFM with DCM:
- DCM DSLink
- Using MQTT DSLink
The MQTT method is outlined here.
- Install and start MQTT DSLink on EFM node
![MQTT_Install.jpg MQTT_Install.jpg](https://community.cisco.com/t5/image/serverpage/image-id/30144i97BF471BA845F49B/image-size/large?v=v2&px=999)
![MQTT_Start.jpg MQTT_Start.jpg](https://community.cisco.com/t5/image/serverpage/image-id/30145iC1D4B05A4D7306E0/image-size/large?v=v2&px=999)
- From dataflow editor page: Configure the MQTT link to connect to DCM
![MQTT_DCM_Configure.jpg MQTT_DCM_Configure.jpg](https://community.cisco.com/t5/image/serverpage/image-id/30146i27F166A2D5E21C79/image-size/large?v=v2&px=999)
name |
<Any Name> |
URL |
ssl://us.ciscokinetic.io (or ssl://eu.ciscokinetic.io ... depending on which Kinetic cluster the gateway is managed from) |
username |
<Gateway user ID from Kinetic> see Kinetic screenshot below |
password |
<Gateway password from Kinetic> see Kinetic screenshot below |
clientID |
<Any unique ID> |
cert |
<cert file from Kinetic> (see attached file) |
![GW_Details.jpg GW_Details.jpg](https://community.cisco.com/t5/image/serverpage/image-id/30147i976C6E0EC5B97813/image-size/large?v=v2&px=999)
- Once the MQTT connection is configured. You can right click on the mqtt connection and choose "publish" operation (or click and drag the publish operation onto to the dataflow) to publish to DCM
- The MQTT topic to be used is also listed in the above picture with gateway details. (Use the observation topic)
- When using the MQTT Publish block in a dataflow, remember to set the "autorun" property to "true", so that any value/input change triggers a publish.
![PublishDataflow1.jpg PublishDataflow1.jpg](https://community.cisco.com/t5/image/serverpage/image-id/30148iF743FD627F064447/image-size/large?v=v2&px=999)
![PublishDataflow2.jpg PublishDataflow2.jpg](https://community.cisco.com/t5/image/serverpage/image-id/30149i190A4F51C75DA170/image-size/large?v=v2&px=999)