Skip to content

Commit 877f7bd

Browse files
committed
docs: add more context
1 parent 5ee757d commit 877f7bd

File tree

3 files changed

+15
-9
lines changed

3 files changed

+15
-9
lines changed

examples/native_networking/minimqtt_adafruitio_native_networking.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,12 @@ def message(client, topic, message):
6363
ssl_context = ssl.create_default_context()
6464

6565
# If you need to use certificate/key pair authentication (e.g. X.509), you can load them in the
66-
# ssl context by uncommenting the line below
66+
# ssl context by uncommenting the lines below and adding the following keys to the "secrets"
67+
# dictionary in your secrets.py file:
68+
# "device_cert_path" - Path to the Device Certificate
69+
# "device_key_path" - Path to the RSA Private Key
6770
# ssl_context.load_cert_chain(
68-
# certfile=secrets['device_cert_path'],
69-
# keyfile=secrets['device_key_path']
71+
# certfile=secrets["device_cert_path"], keyfile=secrets["device_key_path"]
7072
# )
7173

7274
# Set up a MiniMQTT Client

examples/native_networking/minimqtt_pub_sub_blocking_native_networking.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,12 @@ def message(client, topic, message):
6363
ssl_context = ssl.create_default_context()
6464

6565
# If you need to use certificate/key pair authentication (e.g. X.509), you can load them in the
66-
# ssl context by uncommenting the line below
66+
# ssl context by uncommenting the lines below and adding the following keys to the "secrets"
67+
# dictionary in your secrets.py file:
68+
# "device_cert_path" - Path to the Device Certificate
69+
# "device_key_path" - Path to the RSA Private Key
6770
# ssl_context.load_cert_chain(
68-
# certfile=secrets['device_cert_path'],
69-
# keyfile=secrets['device_key_path']
71+
# certfile=secrets["device_cert_path"], keyfile=secrets["device_key_path"]
7072
# )
7173

7274
# Set up a MiniMQTT Client

examples/native_networking/minimqtt_pub_sub_blocking_topic_callbacks_native_networking.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,12 @@ def on_message(client, topic, message):
7070
ssl_context = ssl.create_default_context()
7171

7272
# If you need to use certificate/key pair authentication (e.g. X.509), you can load them in the
73-
# ssl context by uncommenting the line below
73+
# ssl context by uncommenting the lines below and adding the following keys to the "secrets"
74+
# dictionary in your secrets.py file:
75+
# "device_cert_path" - Path to the Device Certificate
76+
# "device_key_path" - Path to the RSA Private Key
7477
# ssl_context.load_cert_chain(
75-
# certfile=secrets['device_cert_path'],
76-
# keyfile=secrets['device_key_path']
78+
# certfile=secrets["device_cert_path"], keyfile=secrets["device_key_path"]
7779
# )
7880

7981
# Set up a MiniMQTT Client

0 commit comments

Comments
 (0)