|
|
## 1. First please add a test hub in your Azure account:
|
|
|
|
|
|
[click to open](https://portal.azure.com/#blade/HubsExtension/BrowseResource/resourceType/Microsoft.Devices%2FIotHubs)
|
|
|
|
|
|

|
|
|
|
|
|
you need to create a IoT Hub and a Resource Group
|
|
|
|
|
|
## 2. Add device
|
|
|
|
|
|

|
|
|
|
|
|
|
|
|
## 3. Choose device certification method
|
|
|
|
|
|
* To Use CertifiateAuthority
|
|
|
|
|
|
we need to download tools to create the certificates for the device.
|
|
|
|
|
|
[Here is How](https://github.com/Azure/azure-iot-sdk-c/blob/master/tools/CACertificates/CACertificateOverview.md)
|
|
|
|
|
|
For the 3rd party mqtt test tool such MQTT FX, you may need to download the Root Certicate at: https://github.com/Azure/azure-iot-sdk-c/blob/master/certs/certs.c, but for the HMI PM4, we don't need it.
|
|
|
|
|
|
* To Use SAS password
|
|
|
|
|
|
we need to install VisualStudio Code Azure Extension to apply the SAS password
|
|
|
|
|
|
## 4. Tools
|
|
|
|
|
|
1. Azure CLI
|
|
|
|
|
|
[here](https://docs.microsoft.com/en-us/cli/azure/?view=azure-cli-latest)
|
|
|
|
|
|
and need to install Azure IoT extension
|
|
|
|
|
|
[here](https://github.com/Azure/azure-iot-cli-extension/blob/master/README.md)
|
|
|
|
|
|
|
|
|
2. VSCode Azure Extension
|
|
|
|
|
|
[here](https://marketplace.visualstudio.com/items?itemName=ms-vscode.azurecli) |
|
|
\ No newline at end of file |