Setting Up Node-RED to Transmit Wzzard Data to Microsoft ...
Wzzard Data to Azure IoT Hub
Using Node-RED
Setting Up Node-RED to Transmit WzzardTM Data to Microsoft Azure IoT Hub
How to publish data from Wzzard Mesh Edge Nodes into the Microsoft Azure IoT Hub using Node-RED
NOTE: This assumes your Gateway is set up and claimed on WebAccess/DMP (formerly SmartWorx Hub) and the Refrigeration demo flow is loaded and working. NOTE: This assumes that the user has an Azure account.
Prepare the Gateway
? Log into WebAccess/DMP and manage your device. ? Select Devices > View Devices and select your Device ID. ? Under Manage Apps, ensure RSMessageBroker, Wzzard Mesh and NodeRED are
installed. If not, install them by selecting the Add/Upgrade Apps tab.
1
0819
Wzzard Data to Azure IoT Hub
Using Node-RED
Add Microsoft Azure IoT Hub Node
? Navigate: Dashboard > Devices > Manage Devices > Settings ? Click on the NodeRED link on the Manage Apps table. ? In Add or Remove Nodes box, in Node field, type node-red-contrib-azureiothubnode ? Then, click Apply Changes button.
? Wait for SmartWorx Hub to sync with your gateway. This may take several minutes. ? You can view the status by doing the following: click Manage Devices, then click the History tab. ? Proceed with the next step once the AddNode command has been added.
Note: you may need to refresh the NodeRED page for your pallet to be updated.
? You will see the node-red-contrib-azureiothubnode node under Cloud (as shown in the next screen).
2
0819
Wzzard Data to Azure IoT Hub
NodeRED Setup
Using Node-RED
? Log into the gateway NodeRED editor. Default address is: 192.168.1.1:1880
? Username is NodeRED. Password is the same as Gateway password (5mart5warm default).
? Scroll down on the left side and ensure the Azure IoT hub node is loaded.
? Access the text from the SampleFlow.txt file - located in the Attachments panel to the upper-left of this document in Adobe Acrobat: View > Navigation Panel > Attachments
? Open it in Notepad (double-click) or a similar editor program.
? Carefully select and copy all of the text to the clipboard.
3
0819
Wzzard Data to Azure IoT Hub
Using Node-RED
? Back in Node-RED editor, add a new flow by clicking on the + sign in the upper right of the window. ? Then, click on the 3 horizontal lines next to Deploy button, select Import, then select Clipboard.
? Paste the text from the text file into the grey Import nodes box and click Import.
4
0819
Connect to IoT Hub
Wzzard Data to Azure IoT Hub
Using Node-RED
? Log into your Azure IoT hub and click on Add to add a new device.
? Name your device in the Device ID field. Click Save.
5
0819
Wzzard Data to Azure IoT Hub
Using Node-RED
? Next, open your new device and copy the Connection string (primary key) to Notepad or a similar editor program.
6
0819
Wzzard Data to Azure IoT Hub
Using Node-RED
? Back in Node-RED editor, click on the node labelled Azure IoT Hub and paste in the Connection String text from above.
? Then click Done.
7
0819
Wzzard Data to Azure IoT Hub
Using Node-RED
Set Up Data String
? Click on the function labeled Generate Data String.
? Replace the deviceID and the Shared Access Key (SAK) with the deviceID and key from your Connection String that you downloaded from the Azure IoT hub. Click Done.
8
0819
................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related download
- setting up node red to transmit wzzard data to microsoft
- prolaborate user guides administrator guide
- connecting to munis from outside your district
- accessing your favorite database with sas and
- getting sas to play nice with others connecting sas to
- keep your database passwords out of the clear quick and
- connection strings in firebird 3 ibphoenix
- using md5 to encrypt passwords in a database
- eap and access control
- computer mathematics and the graphing calculator