Skip to content

Commit 80be7f7

Browse files
authored
Merge pull request #5 from makermelissa/main
Use SSL by default for MQTT
2 parents c9bdaad + 00b44fa commit 80be7f7

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

adafruit_funhouse/network.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,17 @@ def init_io_mqtt(self):
7777
"Adafruit IO secrets are kept in secrets.py, please add them there!\n\n"
7878
) from KeyError
7979

80-
return self.init_mqtt(IO_MQTT_BROKER, 1883, aio_username, aio_key, True)
80+
return self.init_mqtt(IO_MQTT_BROKER, 8883, aio_username, aio_key, True)
8181

8282
# pylint: disable=too-many-arguments
83-
def init_mqtt(self, broker, port=1883, username=None, password=None, use_io=False):
83+
def init_mqtt(
84+
self,
85+
broker,
86+
port=8883,
87+
username=None,
88+
password=None,
89+
use_io=False,
90+
):
8491
"""Initialize MQTT"""
8592
self.connect()
8693
self._mqtt_client = MQTT.MQTT(

0 commit comments

Comments
 (0)