Skip to content

Commit

Permalink
Merge pull request #36 from brentru/update-for-mmqtt
Browse files Browse the repository at this point in the history
Updated Examples for MiniMQTT PR
  • Loading branch information
ladyada committed May 19, 2020
2 parents 1414624 + d00d796 commit 20dfc9e
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 18 deletions.
4 changes: 1 addition & 3 deletions examples/adafruit_io_mqtt/adafruit_io_groups.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,7 @@ def message(client, feed_id, payload):

# Initialize a new MQTT Client object
mqtt_client = MQTT.MQTT(
broker="https://io.adafruit.com",
username=secrets["aio_user"],
password=secrets["aio_key"],
broker="io.adafruit.com", username=secrets["aio_user"], password=secrets["aio_key"],
)

# Initialize an Adafruit IO MQTT Client
Expand Down
4 changes: 1 addition & 3 deletions examples/adafruit_io_mqtt/adafruit_io_location.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,7 @@ def message(client, feed_id, payload):

# Initialize a new MQTT Client object
mqtt_client = MQTT.MQTT(
broker="https://io.adafruit.com",
username=secrets["aio_user"],
password=secrets["aio_key"],
broker="io.adafruit.com", username=secrets["aio_user"], password=secrets["aio_key"],
)

# Initialize an Adafruit IO MQTT Client
Expand Down
4 changes: 1 addition & 3 deletions examples/adafruit_io_mqtt/adafruit_io_simpletest_cellular.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,7 @@ def message(client, feed_id, payload):

# Initialize a new MQTT Client object
mqtt_client = MQTT.MQTT(
broker="http://io.adafruit.com",
username=secrets["aio_user"],
password=secrets["aio_key"],
broker="io.adafruit.com", username=secrets["aio_user"], password=secrets["aio_key"],
)

# Initialize an Adafruit IO MQTT Client
Expand Down
4 changes: 1 addition & 3 deletions examples/adafruit_io_mqtt/adafruit_io_simpletest_eth.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,7 @@ def message(client, feed_id, payload):

# Initialize a new MQTT Client object
mqtt_client = MQTT.MQTT(
broker="http://io.adafruit.com",
username=secrets["aio_user"],
password=secrets["aio_key"],
broker="io.adafruit.com", username=secrets["aio_user"], password=secrets["aio_key"],
)

# Initialize an Adafruit IO MQTT Client
Expand Down
4 changes: 1 addition & 3 deletions examples/adafruit_io_mqtt/adafruit_io_time.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,7 @@ def message(client, feed_id, payload):

# Initialize a new MQTT Client object
mqtt_client = MQTT.MQTT(
broker="https://io.adafruit.com",
username=secrets["aio_user"],
password=secrets["aio_key"],
broker="io.adafruit.com", username=secrets["aio_user"], password=secrets["aio_key"],
)

# Initialize an Adafruit IO MQTT Client
Expand Down
4 changes: 1 addition & 3 deletions examples/adafruit_io_simpletest.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,7 @@ def message(client, feed_id, payload):

# Initialize a new MQTT Client object
mqtt_client = MQTT.MQTT(
broker="https://io.adafruit.com",
username=secrets["aio_user"],
password=secrets["aio_key"],
broker="io.adafruit.com", username=secrets["aio_user"], password=secrets["aio_key"],
)


Expand Down

0 comments on commit 20dfc9e

Please sign in to comment.