Skip to content

Settings dot toml #162

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 12 commits into from
Jul 7, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
updating mqtt_client
  • Loading branch information
BlitzCityDIY committed Apr 25, 2023
commit 8212c464ddf75d3fa5d3232937a675436c90f501
2 changes: 1 addition & 1 deletion examples/esp32spi/minimqtt_pub_sub_blocking_esp32spi.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def message(client, topic, message):

# Set up a MiniMQTT Client
mqtt_client = MQTT.MQTT(
broker=os.getenv("broker"), username=aio_username, password=aio_key
broker="io.adafruit.com", username=aio_username, password=aio_key
)

# Setup the callback methods above
Expand Down
2 changes: 1 addition & 1 deletion examples/esp32spi/minimqtt_pub_sub_nonblocking_esp32spi.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def message(client, topic, message):

# Set up a MiniMQTT Client
mqtt_client = MQTT.MQTT(
broker=os.getenv("broker"), username=aio_username, password=aio_key
broker="io.adafruit.com", username=aio_username, password=aio_key
)

# Setup the callback methods above
Expand Down
6 changes: 2 additions & 4 deletions examples/minimqtt_simpletest.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@
# or if you need your Adafruit IO key.)
aio_username = os.getenv("aio_username")
aio_key = os.getenv("aio_key")
aio_broker = os.getenv("broker")
aio_port = os.getenv("port")

print("Connecting to %s" % os.getenv("CIRCUITPY_WIFI_SSID"))
wifi.radio.connect(
Expand Down Expand Up @@ -77,8 +75,8 @@ def message(client, topic, message):

# Set up a MiniMQTT Client
mqtt_client = MQTT.MQTT(
broker=aio_broker,
port=aio_port,
broker="io.adafruit.com",
port=8883,
username=os.getenv("CIRCUITPY_WIFI_SSID"),
password=os.getenv("CIRCUITPY_WIFI_PASSWORD"),
socket_pool=pool,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
# or if you need your Adafruit IO key.)
aio_username = os.getenv("aio_username")
aio_key = os.getenv("aio_key")
aio_port = os.getenv("port")

print("Connecting to %s" % os.getenv("CIRCUITPY_WIFI_SSID"))
wifi.radio.connect(
Expand Down Expand Up @@ -62,9 +61,9 @@ def message(client, topic, message):
# Set up a MiniMQTT Client
mqtt_client = MQTT.MQTT(
broker="io.adafruit.com",
port=aio_port,
username=aio_username,
password=aio_key,
port=8883,
username=os.getenv("CIRCUITPY_WIFI_SSID"),
password=os.getenv("CIRCUITPY_WIFI_PASSWORD"),
socket_pool=pool,
ssl_context=ssl.create_default_context(),
)
Expand Down