- Open any folder in VS Code
- In VS Code, open Settings from 'File'-->'Preferences'. Add device connection string into the Settings:
- In terminal, run
npm install azure-iot-device azure-iot-device-mqttto install required npm package
iotSand select the 'iotSendD2CMessage' code snippet
- Right click and 'Run Code'
All are done! You have sent your first 'Hello World' message to Azure IoT Hub!