Skip to content

Commit 12eb3ef

Browse files
gguussJon Wayne Parrott
authored andcommitted
Adds instruction to readme to retrieve root certs from Google. (#1225)
1 parent 4150e06 commit 12eb3ef

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

iot/api-client/mqtt_example/README.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ Google Cloud IoT Core API Python Samples
44
===============================================================================
55

66
This directory contains samples for Google Cloud IoT Core API. `Google Cloud IoT Core`_ allows developers to easily integrate Publish and Subscribe functionality with devices and programmatically manage device authorization.
7+
Before you run the sample, you must retrieve the Google root certificate. For example, `wget https://pki.goog/roots.pem` or `curl https://pki.goog/roots.pem > roots.pem`.
78
The following example runs the sample using the project ID `blue-jet-123` and the device name `my-python-device`:
89

910
python cloudiot_mqtt_example.py \
@@ -71,9 +72,9 @@ To run this sample:
7172
[--mqtt_bridge_hostname MQTT_BRIDGE_HOSTNAME]
7273
[--mqtt_bridge_port {8883,443}]
7374
[--jwt_expires_minutes JWT_EXPIRES_MINUTES]
74-
75+
7576
Example Google Cloud IoT Core MQTT device connection code.
76-
77+
7778
optional arguments:
7879
-h, --help show this help message and exit
7980
--project_id PROJECT_ID
@@ -104,4 +105,5 @@ To run this sample:
104105
105106
106107
108+
107109
.. _Google Cloud SDK: https://cloud.google.com/sdk/

iot/api-client/mqtt_example/README.rst.in

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ product:
99
Subscribe functionality with devices and programmatically manage device
1010
authorization.
1111

12+
Before you run the sample, you must retrieve the Google root certificate.
13+
For example, `wget https://pki.goog/roots.pem` or
14+
`curl https://pki.goog/roots.pem > roots.pem`.
15+
1216
The following example runs the sample using the project ID `blue-jet-123`
1317
and the device name `my-python-device`:
1418

0 commit comments

Comments
 (0)