Legal Disclaimer
This page was provided just to provide a convenience for users. Seeed is not responsible for any errors or omissions, or for the results obtained from the use of this information. All information in this page is provided "as is", with no guarantee of completeness, accuracy, timeliness or of the results obtained from the use of this information.
For more information about "Azure IoT Hub", please refer to Azure IoT Hub.
For pricing information about IoT Hub tiers refer to IoT Hub pricing.
If you don't have an active Azure subscription, create a free account before you begin.
2.1 : Navigate to Azure Portal with browser
Field | Description |
---|---|
Subscription | Your subscription. Select from the list. |
Resource Group | A resource group to manage all the resources. Select existing one from the list or create new group. |
Region | Location of Azure Data Center. Select the one close to you. |
IoT Hub Name | Provide a globally unique name for your IoT Hub. |
Click Size and scale
, then select F1 : Free tier
.
NOTE: Only one F1 Free tier is available per subscription. If you already have F1 IoT Hub, you may need non-free tier IoT Hub. More about IoT Hub tier.
Review your settings then, click Create
button.
Wait until the deployment completes.
After your new Azure IoT Hub is deployed, click your Azure IoT Hub resource to navigate to Azure IoT Hub instance you just created.
Click IoT Devices
To add a new IoT Device to your Azure IoT Hub
Set Device Id (Name) for your ReButton, then click Save
button
In order for ReButton to securely connect to Azure IoT Hub, Connection String needs to be saved to ReButton.
Click on the newly created IoT Device (e.g. ReButton) to open Device details
page.
Copy either Primary or Secondary Connection String by clicking button on the right
Please refer to 3-1. Azure IoT Hub
With Azure CLI tool, verify ReButton sends messages to Azure IoT Hub.
Please refer to Azure CLI install instruction here
Install Azure IoT extension for Azure CLI with following command
$ az extension add --name azure-cli-iot-ext
After getting Azure CLI installed, login to Azure
$ az login
Web browser will launch to complete login process
Let's list your IoT Hub(s)
$ az iot hub list
To monitor messages from ReButton
to IoT Hub, please run command.
NOTE: Replace [IoTHub Name] with your Azure IoT Hub instance from list command above.
$ az iot hub monitor-events -n [IoTHub Name] --properties anno sys --timeout 0
For more information about Azure CLI command, please see help,
$ az iot hub monitor-events --help