Node-RED Connector for Azure IoT Central

%3CLINGO-SUB%20id%3D%22lingo-sub-1605502%22%20slang%3D%22en-US%22%3ENode-RED%20Connector%20for%20Azure%20IoT%20Central%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1605502%22%20slang%3D%22en-US%22%3E%3CP%3E%3C!--%20wp%3Aparagraph%20--%3E%3C%2FP%3E%0A%3CP%3EIf%20you%20are%20using%20Node-RED%20for%20your%20IoT%20projects%20and%20need%20to%20connect%20to%20Azure%20IoT%20Central%2C%20you%20can%20use%20my%20Node-RED%20Connector%20for%20Azure%20IoT%20Central%20to%20make%20it%20simple%20to%20connect%20and%20at%20the%20same%20time%20leveraging%20all%20the%20features%20of%20the%20Azure%20IoT%20Central%20from%20Node-RED%20environment.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3C!--%20%2Fwp%3Aparagraph%20--%3E%20%3C!--%20wp%3Aparagraph%20--%3E%3C%2FP%3E%0A%3CP%3EThe%20connector%20is%20available%20as%20a%20standard%20Node-RED%20contrib%20into%20the%20gallery.%3C%2FP%3E%0A%3CP%3E%3C!--%20%2Fwp%3Aparagraph%20--%3E%20%3C!--%20wp%3Aimage%20%7B%22id%22%3A314%2C%22sizeSlug%22%3A%22large%22%2C%22className%22%3A%22is-style-default%22%7D%20--%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22605dc9dd04dbf548bb1f0932095b4668%22%20style%3D%22width%3A%20747px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F213970i7E14EAB7F48ABB56%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22605dc9dd04dbf548bb1f0932095b4668%22%20alt%3D%22605dc9dd04dbf548bb1f0932095b4668%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3EThose%20are%20scenarios%20currently%20supported%3A%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3C!--%20%2Fwp%3Aparagraph%20--%3E%20%3C!--%20wp%3Alist%20--%3E%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EAuthentication%3A%20SAS%2C%20X.509%20(PEM%20certificates).%3C%2FLI%3E%0A%3CLI%3ETransport%3A%20MQTT%2C%20AMQP%2C%20HTTP.%3C%2FLI%3E%0A%3CLI%3ESend%20telemetry%20(D2C).%3C%2FLI%3E%0A%3CLI%3EReceiving%20commands%20from%20Azure%20IoT%20Central%3C%2FLI%3E%0A%3CLI%3EDesired%20Properties%20(%20from%20Azure%20IoT%20Central%20to%20Device%20).%20The%20device%20can%20read%20and%20be%20notified.%3C%2FLI%3E%0A%3CLI%3EReported%20Properties%20(%20from%20Device%20to%20Azure%20IoT%20Central%20).%20The%20device%20can%20write%20those%20properties.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%3C!--%20%2Fwp%3Alist%20--%3E%20%3C!--%20wp%3Aparagraph%20--%3E%3C%2FP%3E%0A%3CP%3EThe%20code%20of%20the%20Node-RED%20Connector%20for%20Azure%20IoT%20Central%20is%20available%20is%20on%20GitHub%20with%20some%20%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fpietrobr%2Fnode-red-contrib-azure-iot-central%2Ftree%2Fmaster%2Fflows%22%20target%3D%22_blank%22%20rel%3D%22noreferrer%20noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Esamples%20flows%20here%3C%2FA%3E.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CIMG%20src%3D%22https%3A%2F%2Fpietrobrambati.blog%2Fwp-content%2Fuploads%2F2020%2F05%2Fimage-23.png%22%20border%3D%220%22%20%2F%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI%20have%20recently%20done%20a%20couple%20of%20posts%20explaining%20how%20to%20use%20it%20that%20are%26nbsp%3B%20available%20at%20the%20following%20links%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fpietrobrambati.blog%2F2020%2F08%2F20%2Fraspberry-and-sense-hat-telemetry-to-iot-central-using-node-red%2F%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3ERaspberry%20with%20Sense%20HAT%20telemetry%20to%20IoT%20Central%20using%20Node-RED%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fpietrobrambati.blog%2F2020%2F08%2F21%2Fsending-commands-from-azure-iot-central-to-raspberry-pi-with-sense-hat-in-node-red%2F%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3ESending%20commands%20from%20Azure%20IoT%20Central%20to%20Raspberry%20PI%20with%20Sense%20HAT%20in%20node-RED%3C%2FA%3E%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%3C!--%20%2Fwp%3Aparagraph%20--%3E%20%3C!--%20wp%3Aparagraph%20--%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3C!--%20%2Fwp%3Aparagraph%20--%3E%20%3C!--%20wp%3Aimage%20%7B%22id%22%3A315%2C%22sizeSlug%22%3A%22large%22%7D%20--%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3C!--%20%2Fwp%3Aimage%20--%3E%20%3C!--%20wp%3Aparagraph%20--%3E%3C%2FP%3E%0A%3CP%3ENode-RED%20is%20a%20well%20know%20programming%20tool%20used%20for%20both%20prototyping%20and%20production.%20It%20comes%20already%20installed%20on%20some%20device.%20Its%20graphical%20User%20Interface%20makes%20it%20easy%20to%20develop%20on%20devices%20using%20node%20that%20simulate%20code%20like%20math%20functions%2C%20or%20more%20specific%20hardware%20oriented%20functions%2C%20it%20also%20enable%20to%20easily%20interact%20with%20sensors%20using%20the%20same%20mode%20of%20node%2C%20like%20for%20example%20in%20the%20image%20the%20node%20Sense%20HAT%20represent%20the%20Sense%20HAT%20for%20the%20Raspberry%20PI%20device.%3C%2FP%3E%0A%3CP%3E%3C!--%20%2Fwp%3Aparagraph%20--%3E%20%3C!--%20wp%3Aparagraph%20--%3E%3C%2FP%3E%0A%3CP%3EAzure%20IoT%20Central%20is%20the%20SaaS%20solution%20from%20Microsoft%2C%20enterprise%20ready%2C%20scalable%20and%20secure.%20It's%20easy%20to%20use%20to%20create%20a%20real%20Cloud%20IoT%20solution%20with%20Dashboard%2C%20rules%20(for%20example%20activate%20an%20action%20if%20temperature%20goes%20over%20a%20certain%20threshold)%2C%20analytics%2C%20the%20possibility%20to%20connect%20real%20and%20simulated%20device%20and%20more%20on%20that%20features.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EConclusion%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3EIf%20you%20need%20more%20examples%2C%20or%20features%2C%20let%20me%20know%20I%20will%20try%20to%20help.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EHappy%20coding!%3C%2FP%3E%0A%3CP%3E-Pietro%3C%2FP%3E%0A%3CP%3E%3C!--%20%2Fwp%3Aparagraph%20--%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1610061%22%20slang%3D%22en-US%22%3ERe%3A%20Node-RED%20Connector%20for%20Azure%20IoT%20Central%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1610061%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F210156%22%20target%3D%22_blank%22%3E%40Pietro_Brambati%3C%2FA%3E%26nbsp%3Bthat's%20great!%20Thanks%20for%20this!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1610128%22%20slang%3D%22en-US%22%3ERe%3A%20Node-RED%20Connector%20for%20Azure%20IoT%20Central%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1610128%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F701947%22%20target%3D%22_blank%22%3E%40MatthijsvdVeer%3C%2FA%3E%26nbsp%3Byour%20welcome!%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Microsoft

If you are using Node-RED for your IoT projects and need to connect to Azure IoT Central, you can use my Node-RED Connector for Azure IoT Central to make it simple to connect and at the same time leveraging all the features of the Azure IoT Central from Node-RED environment.

 

The connector is available as a standard Node-RED contrib into the gallery.

 

 

605dc9dd04dbf548bb1f0932095b4668

 

 Those are scenarios currently supported:

 

 

  • Authentication: SAS, X.509 (PEM certificates).
  • Transport: MQTT, AMQP, HTTP.
  • Send telemetry (D2C).
  • Receiving commands from Azure IoT Central
  • Desired Properties ( from Azure IoT Central to Device ). The device can read and be notified.
  • Reported Properties ( from Device to Azure IoT Central ). The device can write those properties.

The code of the Node-RED Connector for Azure IoT Central is available is on GitHub with some samples flows here.

 

 

I have recently done a couple of posts explaining how to use it that are  available at the following links:

 

 

 

Node-RED is a well know programming tool used for both prototyping and production. It comes already installed on some device. Its graphical User Interface makes it easy to develop on devices using node that simulate code like math functions, or more specific hardware oriented functions, it also enable to easily interact with sensors using the same mode of node, like for example in the image the node Sense HAT represent the Sense HAT for the Raspberry PI device.

Azure IoT Central is the SaaS solution from Microsoft, enterprise ready, scalable and secure. It's easy to use to create a real Cloud IoT solution with Dashboard, rules (for example activate an action if temperature goes over a certain threshold), analytics, the possibility to connect real and simulated device and more on that features.

 

Conclusion

If you need more examples, or features, let me know I will try to help.

 

Happy coding!

-Pietro

2 Replies
Highlighted

@Pietro_Brambati that's great! Thanks for this!

Highlighted