Skip to content

Commit 60439ca

Browse files
authored
Merge pull request #91023 from kgremban/oct8-gatewayissues
Clarify output from gateway connection test
2 parents 89a6cde + c40e17f commit 60439ca

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

articles/iot-edge/how-to-connect-downstream-device.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: How to configure downstream or leaf devices to connect to Azure IoT
44
author: kgremban
55
manager: philmea
66
ms.author: kgremban
7-
ms.date: 09/07/2019
7+
ms.date: 10/08/2019
88
ms.topic: conceptual
99
ms.service: iot-edge
1010
services: iot-edge
@@ -178,18 +178,24 @@ This section introduces a sample application to connect an Azure IoT Java device
178178
This section introduces a sample application to connect an Azure IoT Python device client to an IoT Edge gateway.
179179

180180
1. Get the sample for **send_message** from the [Azure IoT device SDK for Python samples](https://github.com/Azure/azure-iot-sdk-python/tree/master/azure-iot-device/samples/advanced-edge-scenarios).
181-
2. Ensure that you are either running in an Edge container, or in a debug scenario, have the `EdgeHubConnectionString` and `EdgeModuleCACertificateFile` environment variables set.
181+
2. Ensure that you are either running in an IoT Edge container, or in a debug scenario, have the `EdgeHubConnectionString` and `EdgeModuleCACertificateFile` environment variables set.
182182
3. Refer to the SDK documentation for instructions on how to run the sample on your device.
183183

184184

185185
## Test the gateway connection
186186

187-
This is a sample command that tests that everything has been set up correctly. You should see a message saying "verified OK".
187+
Use this sample command to test that your downstream device can connect to the gateway device:
188188

189189
```cmd/sh
190190
openssl s_client -connect mygateway.contoso.com:8883 -CAfile <CERTDIR>/certs/azure-iot-test-only.root.ca.cert.pem -showcerts
191191
```
192192

193+
This command tests connections over MQTTS (port 8883). If you're using a different protocol, adjust the command as neccessary for AMQPS (5671) or HTTPS (433).
194+
195+
The output of this command may be long, including information about all the certificates in the chain. If your connection is successful, you'll see a line like `Verification: OK` or `Verify return code: 0 (ok)`.
196+
197+
![Verify gateway connection](./media/how-to-connect-downstream-device/verification-ok.png)
198+
193199
## Troubleshoot the gateway connection
194200

195201
If your leaf device has intermittent connection to its gateway device, try the following steps for resolution.
9.39 KB
Loading

0 commit comments

Comments
 (0)