Azure IoT Hub extension for Visual Studio Code
Interact with Azure IoT Hub, IoT Device Management, IoT Edge Management, IoT Hub Device Simulation, IoT Hub Code Generation and IoT Hub Device Provisioning Service.
The Wiki page includes a comprehensive getting started guide as well as detailed usage instructions of the following features:
HostName=<my-hub>.azure-devices.net;SharedAccessKeyName=<my-policy>;SharedAccessKey=<my-policy-key>
).Instead of copying and pasting to set IoT Hub Connection String, you could sign in to Azure to select IoT Hub from your Azure Subscription.
If you're not signed in, click "Sign in to Azure..." to sign in.
Expand one subscription to start exploring your device provisioning services.
Trigger | Content |
---|---|
iotSendD2CMessage | Send D2C message to IoT Hub |
iotMonitorD2CMessage | Monitor D2C message for IoT Hub |
iotSendC2DMessage | Send C2D message to device |
iotMonitorC2DMessage | Monitor C2D message from IoT Hub |
iotCallDirectMethods | Send direct methods to device |
iotReceiveDirectMethods | Receive direct methods from IoT Hub |
After code snippet is created, you need to install corresponding npm package (e.g. azure-iot-device-mqtt) to run the code snippet. If you want to 'Run Code' directly, you need to install Code Runner.
IoT Hub Consumer Group (default is "$Default"
):
{
"azure-iot-toolkit.iotHubConsumerGroup": "$Default"
}
The time span (in minutes) of monitoring D2C message before current time (default is 0
):
{
"azure-iot-toolkit.monitorD2CBeforeNowInMinutes": 0
}
Whether to show verbose info when monitoring messages (default is false
):
{
"azure-iot-toolkit.showVerboseMessage": false
}
Whether to stringify device-to-cloud messages (default is false
):
{
"azure-iot-toolkit.iotHubD2CMessageStringify": false
}
Whether to show IoT Hub info when IoT Hub Connection String is not set (default is true
):
{
"azure-iot-toolkit.showIoTHubInfo": true
}
Whether to enable auto refresh of tree view (default is false
):
{
"azure-iot-toolkit.treeViewAutoRefreshEnable": false
}
Time interval in seconds for tree view auto refresh, auto refresh has to be enabled for it to work. (default is 60
):
{
"azure-iot-toolkit.treeViewAutoRefreshIntervalInSeconds": 60
}
Thanks to all the contributors!
This project collects usage data and sends it to Microsoft to help improve our products and services. Read our privacy statement to learn more.
If you don’t wish to send usage data to Microsoft, you can set the telemetry.enableTelemetry
setting to false
. Learn more in our FAQ.