Azure IoT Toolkit 1.2.0: Quickly build your Azure IoT application in VS Code with Node.js, Python or REST API


---------------- Update [2018-08-31] ----------------

With v1.3.0 of Azure IoT Toolkit, C#, Go, Java, Node.js, PHP, Python and Ruby are supported. See more details in this post.

---------------- Original post -------------------------

Do you know you could get started with Azure IoT very easily with popular languages such as Node.js and Python? With Azure IoT Toolkit, you could quickly build your Azure IoT application in VS Code in just a few minutes! In v1.20 release, Azure IoT Toolkit has supported to create an Azure IoT application using Node.js, Python or REST API. Let's see how easy it is to create a Node.js application for Azure IoT Hub in VS Code.

Prerequisites

Generate Code

  1. Right-click your device and select Generate Code
  2. In language list, select Node.js
  3. In code template list, select Send device-to-cloud message
  4. The JavaScript will be generated immediately. The device connection string is also automatically filled in.

Run Code

  1. Open Integrated Terminal of VS Code
  2. Run npm install azure-iot-device-mqtt to install the Azure IoT Hub Node SDK
  3. Right-click in editor area and select Run Code
  4. In Output Channel, you will see Node.js application is running. It is sending the simulated device data to IoT Hub every second.
  5. If you want to monitor the device-to-cloud message in VS Code, you could refer to our Wiki page.

 

It is the first release of Azure IoT Toolkit to support the code generation, Node.js, Python and REST API are just the first step. We will certainly add support for more languages and templates. Let us know what languages you want! Feel free to leave your feedback or suggestion in our GitHub issue !

 

Useful Resources:

Comments (0)

Skip to main content