Skip to content

Commit 36befcc

Browse files
authored
Merge pull request #8 from myDevicesIoT/feature/secure-connection
Update README example code.
2 parents 3f3c16e + f21947a commit 36befcc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ Below is an example of a simple client that publishes some sample data and recei
5252
client = cayenne.client.CayenneMQTTClient()
5353
client.on_message = on_message
5454
client.begin(MQTT_USERNAME, MQTT_PASSWORD, MQTT_CLIENT_ID)
55+
# For a secure connection use port 8883 when calling client.begin:
56+
# client.begin(MQTT_USERNAME, MQTT_PASSWORD, MQTT_CLIENT_ID, port=8883)
5557

5658
i=0
5759
timestamp = 0

0 commit comments

Comments
 (0)