Skip to content

Commit cba3cde

Browse files
committed
fixup the examples
1 parent c55ca95 commit cba3cde

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

examples/cpython/minimqtt_adafruitio_cpython.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,7 @@ def message(client, topic, message):
4646

4747
# Set up a MiniMQTT Client
4848
mqtt_client = MQTT.MQTT(
49-
broker=secrets["broker"],
50-
port=1883,
49+
broker="io.adafruit.com",
5150
username=secrets["aio_username"],
5251
password=secrets["aio_key"],
5352
socket_pool=socket,

examples/ethernet/minimqtt_simpletest_eth.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,12 @@ def publish(client, userdata, topic, pid):
6767
MQTT.set_socket(socket, eth)
6868

6969
# Set up a MiniMQTT Client
70+
# NOTE: We'll need to connect insecurely for ethernet configurations.
7071
client = MQTT.MQTT(
71-
broker=secrets["broker"], username=secrets["user"], password=secrets["pass"]
72+
broker=secrets["broker"],
73+
username=secrets["user"],
74+
password=secrets["pass"],
75+
is_ssl=False,
7276
)
7377

7478
# Connect callback handlers to client

examples/native_networking/minimqtt_adafruitio_native_networking.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def message(client, topic, message):
6262

6363
# Set up a MiniMQTT Client
6464
mqtt_client = MQTT.MQTT(
65-
broker=secrets["broker"],
65+
broker="io.adafruit.com",
6666
port=secrets["port"],
6767
username=secrets["aio_username"],
6868
password=secrets["aio_key"],

0 commit comments

Comments
 (0)