Skip to content

Instantly share code, notes, and snippets.

@drasko
Created September 7, 2018 23:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save drasko/b85e779ebdb726a8bd2bfb09e2655977 to your computer and use it in GitHub Desktop.
Save drasko/b85e779ebdb726a8bd2bfb09e2655977 to your computer and use it in GitHub Desktop.
###
# Register Export Client
###
printf "\n> Registering Export Client\n"
curl http://localhost:48071/api/v1/registration -X POST -s -S -d @- <<EOF
{
"name":"myMqttPublisher",
"addressable":{
"name":"myMqttBroker",
"protocol":"tcp",
"address":"test.mosquitto.org",
"port":1883,
"publisher":"EdgeXExportPublisher",
"user":"",
"password":"",
"topic":"edgex/data"
},
"format":"JSON",
"encryption":{
"encryptionAlgorithm":"",
"encryptionKey":"",
"initializingVector":""
},
"enable":true,
"destination":"MQTT_TOPIC"
}
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment