Skip to content

Commit 06b2a11

Browse files
authored
Merge pull request #53 from sidikalamini/patch-1
Update adafruit_espatcontrol_socket.py
2 parents 2866b43 + 394bf96 commit 06b2a11

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

adafruit_espatcontrol/adafruit_espatcontrol_socket.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@ def connect(self, address: Tuple[str, int], conntype: Optional[str] = None) -> N
7373
conntype = "TCP"
7474
elif port == 443:
7575
conntype = "SSL"
76+
# to cater for MQTT over TCP
77+
elif port == 1883:
78+
conntype = "TCP"
7679

7780
if not _the_interface.socket_connect(
7881
conntype, host, port, keepalive=10, retries=3

0 commit comments

Comments
 (0)