Skip to content

Commit

Permalink
fixup the examples
Browse files Browse the repository at this point in the history
  • Loading branch information
vladak committed Jan 13, 2023
1 parent c55ca95 commit cba3cde
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
3 changes: 1 addition & 2 deletions examples/cpython/minimqtt_adafruitio_cpython.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,7 @@ def message(client, topic, message):

# Set up a MiniMQTT Client
mqtt_client = MQTT.MQTT(
broker=secrets["broker"],
port=1883,
broker="io.adafruit.com",
username=secrets["aio_username"],
password=secrets["aio_key"],
socket_pool=socket,
Expand Down
6 changes: 5 additions & 1 deletion examples/ethernet/minimqtt_simpletest_eth.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,12 @@ def publish(client, userdata, topic, pid):
MQTT.set_socket(socket, eth)

# Set up a MiniMQTT Client
# NOTE: We'll need to connect insecurely for ethernet configurations.
client = MQTT.MQTT(
broker=secrets["broker"], username=secrets["user"], password=secrets["pass"]
broker=secrets["broker"],
username=secrets["user"],
password=secrets["pass"],
is_ssl=False,
)

# Connect callback handlers to client
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def message(client, topic, message):

# Set up a MiniMQTT Client
mqtt_client = MQTT.MQTT(
broker=secrets["broker"],
broker="io.adafruit.com",
port=secrets["port"],
username=secrets["aio_username"],
password=secrets["aio_key"],
Expand Down

0 comments on commit cba3cde

Please sign in to comment.