You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/iot-hub-device-update/device-update-simulator.md
+26-26Lines changed: 26 additions & 26 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -82,34 +82,34 @@ After the Device Update agent is running on an IoT device, you must add the devi
82
82
```bash
83
83
sudo nano /etc/adu/du-config.json
84
84
```
85
-
Set up values as shown below in the configuration file:
86
-
87
-
```bash
88
-
{
89
-
"schemaVersion": "1.1",
90
-
"aduShellTrustedUsers": [
91
-
"adu",
92
-
"do"
93
-
],
94
-
"iotHubProtocol": "mqtt",
95
-
"manufacturer": "Contoso",
96
-
"model": "Video",
97
-
"agents": [
98
-
{
99
-
"name": 'aduagent1',
100
-
"runas": "adu",
101
-
"connectionSource": {
102
-
"connectionType": "string", //or “AIS”
103
-
"connectionData": <Place your Azure IoT device connection string here>
104
-
},
85
+
Set up values as shown below in the configuration file:
86
+
87
+
```bash
88
+
{
89
+
"schemaVersion": "1.1",
90
+
"aduShellTrustedUsers": [
91
+
"adu",
92
+
"do"
93
+
],
94
+
"iotHubProtocol": "mqtt",
105
95
"manufacturer": "Contoso",
106
96
"model": "Video",
107
-
}
108
-
]
109
-
}
110
-
```
111
-
> [!NOTE]
112
-
>You can also use IoT Identity Service to provision the device. To do, that [install the iot indentity service] (https://azure.github.io/iot-identity-service/installation.html) before the agent and set the connectionType to 'AIS' and connectionData as a blank string in the [configuration file](device-update-configuration-file.md) above.
97
+
"agents": [
98
+
{
99
+
"name": 'aduagent1',
100
+
"runas": "adu",
101
+
"connectionSource": {
102
+
"connectionType": "string", //or “AIS”
103
+
"connectionData": <Place your Azure IoT device connection string here>
104
+
},
105
+
"manufacturer": "Contoso",
106
+
"model": "Video",
107
+
}
108
+
]
109
+
}
110
+
```
111
+
> [!NOTE]
112
+
>You can also use IoT Identity Service to provision the device. To do, that [install the iot indentity service] (https://azure.github.io/iot-identity-service/installation.html) before the agent and set the connectionType to 'AIS' and connectionData as a blank string in the [configuration file](device-update-configuration-file.md) above.
113
113
114
114
1. Set up the agent to run as a simulator. Run the following command on the IoT device so that the Device Update agent invokes the simulator handler to process a package update with SWUpdate (`microsoft/swupdate:1`).
0 commit comments