Skip to content

Commit 8f581db

Browse files
committed
Updated screenshots
1 parent 9edd1ae commit 8f581db

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed
143 KB
Loading
-3 Bytes
Loading
-35.6 KB
Loading
-198 KB
Loading

articles/iot-hub/tutorial-connectivity.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -118,13 +118,13 @@ In some scenarios, such as in a cloud protocol gateway or as part of a custom au
118118
> [!NOTE]
119119
> The SimulatedDevice-2.js sample includes examples of generating a SAS token both with and without the SDK.
120120
121-
1. To generate a known-good SAS token using the CLI, run the following command:
121+
1. Run the following command to generate a known-good SAS token using the CLI:
122122

123123
```azurecli-interactive
124124
az iot hub generate-sas-token --device-id {your_device_id} --hub-name {your_iot_hub_name}
125125
```
126126

127-
1. Make a note of the full text of the generated SAS token. A SAS token looks like the following example: `SharedAccessSignature sr=tutorials-iot-hub.azure-devices.net%2Fdevices%2FMyTestDevice&sig=....&se=1524155307`
127+
1. Copy the full text of the generated SAS token. A SAS token looks like the following example: `SharedAccessSignature sr=tutorials-iot-hub.azure-devices.net%2Fdevices%2FmyDevice&sig=xxxxxx&se=111111`
128128

129129
1. In a terminal window on your development machine, navigate to the root folder of the sample Node.js project you downloaded. Then navigate to the **iot-hub\Tutorials\ConnectivityTests** folder.
130130

@@ -135,9 +135,9 @@ In some scenarios, such as in a cloud protocol gateway or as part of a custom au
135135
node SimulatedDevice-2.js "{Your SAS token}"
136136
```
137137

138-
The terminal window displays information as it tries to connect to your hub using the SAS token:
138+
The terminal window displays a success message once it connects to your hub using the SAS token:
139139

140-
![Simulated device connecting with token](media/tutorial-connectivity/sim-2-connected.png)
140+
:::image type="content" source="media/tutorial-connectivity/sim-2-connected.png" alt-text="Screenshot that shows a successful connection using a SAS token.":::
141141

142142
You've now successfully authenticated from a device using a test SAS token generated by a CLI command. The **SimulatedDevice-2.js** file includes sample code that shows you how to generate a SAS token in code.
143143

@@ -163,7 +163,7 @@ After a device connects, it can start sending telemetry to your IoT hub. This se
163163

164164
### Send device-to-cloud messages
165165

166-
1. First, retrieve the current connection string for your simulated device using the following command:
166+
1. Since we reset the connection string for your device in the previous section, use the following command to retrieve the updated connection string:
167167

168168
```azurecli-interactive
169169
az iot hub device-identity connection-string show --device-id {your_device_id} --output table --hub-name {your_iot_hub_name}
@@ -180,7 +180,7 @@ After a device connects, it can start sending telemetry to your IoT hub. This se
180180

181181
The terminal window displays information as it sends telemetry to your hub:
182182

183-
![Simulated device sending messages](media/tutorial-connectivity/sim-3-sending.png)
183+
:::image type="content" source="media/tutorial-connectivity/sim-3-sending.png" alt-text="Screenshot that shows the simulated device sending messages.":::
184184

185185
### Monitor incoming messages
186186

0 commit comments

Comments
 (0)