Line 88: |
Line 88: |
| | | |
| ==Configuring Azure IoT Hub on RutOS== | | ==Configuring Azure IoT Hub on RutOS== |
| + | To configure an Azure IoT Hub instance on a RUT device, it is essential to first install the Azure IoT Hub package via the package manager. |
| <ul> | | <ul> |
− | <li>First open router WebUI, go to '''System > Package Manager''' and install Azure IoT Hub package </li> | + | <li>To install required package, please on the router WebUI, navigate '''System > Package Manager''' and install Azure IoT Hub package </li> |
| [[File:Azure RutOSconf 1.png|border|class=tlt-border]] | | [[File:Azure RutOSconf 1.png|border|class=tlt-border]] |
− | <li>Now navigate to ''' Services > Cloud solutions > Azure IoT Hub''' </li> | + | </ul> |
| + | Now navigate to ''' Services > Cloud solutions > Azure IoT Hub''' and add a new instance. In the pop-up window, you will notice two different connection types available: |
| + | <ul> <li> Shared Access signature (SAS) key </li> |
| + | <li> Device Provisioning Service (DPS) </li> </ul> |
| + | In this article, we will demonstrate the configuration steps for both connection types. |
| + | ===SAS key connection type configuration=== |
| + | Configuring Azure IoT Hub using the SAS key connection type is quite simple and straightforward. Please follow these three steps: |
| <div>1. Make sure to enable the instance by pressing '''Enable''' button </div> | | <div>1. Make sure to enable the instance by pressing '''Enable''' button </div> |
| <div>2. Paste previously copied '''Connection String'''</div> | | <div>2. Paste previously copied '''Connection String'''</div> |
Line 97: |
Line 104: |
| [[File:Azure RutOSconf 2.2.png|border|class=tlt-border]] | | [[File:Azure RutOSconf 2.2.png|border|class=tlt-border]] |
| </ul> | | </ul> |
| + | After the instance is correctly configured, you will be able to see the connection status on the Azure IoT Hub page of the WebUI. A green dot indicates that the connection is successful. |
| + | [[File:Azure RutOSconf 3.png|border|class=tlt-border]] |
| + | Additionally, you can check the connection status through the router command line by executing the following command: |
| + | ubus call azure.1 get_connection_status |
| + | Upon executing this command, you will see its output. If the connection is successful, you will see the following output: |
| + | [[File:Azure RutOSconf 4.png|border|class=tlt-border]] |
| + | |
| ==Checking if Data reaches Azure IoT Hub== | | ==Checking if Data reaches Azure IoT Hub== |
| <ul> | | <ul> |