You can download the latest version of the Device Explorer tool from github
Get the connection string (“Connection string – primary key” field) of the from the IoT Hub Configuration.
And copy it to the Device Explorer application into the “IoT Hub Connection String” field. Afterwards press the “Update” button.
Choose a unique Device ID (maximum 23 characters) and leave all other settings to the default.
Select in the Device Explorer application on the “Management” page the IoT Hub Device. Press the “SAS Token…” button. Set the “TTL (Days)” field to 365 (a year) or how long the SAS should be valid. Press the “Generate” button in the opened dialog. Copy the generated String for later use.
Add “MQTT Broker” connection on the “Data Destination”
Specify a connection name and specify the Device ID of the created Azure IoT Hub device to the Client ID. Keep in mind that the client id should contain only small letters.
Set the “MQTT Broker URI” to ssl://<IoT Hub Name>.azure-devices.net:8883
.
Change the “Authentication Settings” to: “User Identity” = “User Name and password” “User Name” = <IoT Hub Name>/<Device ID> “Password” = The part of the SAS Token after “SharedAccessSignature=” (e.g. SharedAccessSignature sr=Softing-IoT-Hub-SalesDemo.azure-devices.net…)
Press the button in the “Connection Test” area to verify the connection.
Add the following topic hierarchy as Nodes:
devices - <Device ID> - messages - events
Below “events” add the topics for the data you want to send.
You can specify the format of the publish string. Try to use a json payload like {"@ITEMID@":"@VALUE@"} and retain disabled, then it can be used in the "Time Series".
After you have added all topics press the “Next” button.
Select “Enable Last Will and Testament” and add devices/<Device ID>/messages/events/state to the “Fully hierarchical topic name”. Select “Retain” and leave the “Message” to Disconnected.
On the “Data Processing” | “Exchange” page you now can configure the data which should be send over MQTT.
Select as “Source Item” the data you want to transfer and as “Destination Item” the MQTT topic you want to use for sending it.
If you now start the dataFEED application the MQTT messages will be send to the Azure IoT Hub.
You can see the received messages of the IoT Hub on the Azure portal.
With the Device Explorer you can connect to the IoT Hub and monitor the received data.
Version: Documentation-v1.1.0