8000 Add region tags to create_jwt function. (#1194) · johnmanong/python-docs-samples@c9cce53 · GitHub
[go: up one dir, main page]

Skip to content

Commit c9cce53

Browse files
noerogJon Wayne Parrott
authored andcommitted
Add region tags to create_jwt function. (GoogleCloudPlatform#1194)
1 parent 66f06fd commit c9cce53

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

iot/api-client/mqtt_example/cloudiot_mqtt_example.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
import jwt
3030
import paho.mqtt.client as mqtt
3131

32-
32+
# [START iot_mqtt_jwt]
3333
def create_jwt(project_id, private_key_file, algorithm):
3434
"""Creates a JWT (https://jwt.io) to establish an MQTT connection.
3535
Args:
@@ -62,7 +62,7 @@ def create_jwt(project_id, private_key_file, algorithm):
6262
algorithm, private_key_file))
6363

6464
return jwt.encode(token, private_key, algorithm=algorithm)
65-
65+
# [END iot_mqtt_jwt]
6666

6767
def error_str(rc):
6868
"""Convert a Paho error to a human readable string."""

0 commit comments

Comments
 (0)
0