Skip to content
Merged
Changes from 2 commits
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
3 changes: 3 additions & 0 deletions adafruit_espatcontrol/adafruit_espatcontrol_socket.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ def connect(self, address: Tuple[str, int], conntype: Optional[str] = None) -> N
conntype = "TCP"
elif port == 443:
conntype = "SSL"
#to cater for MQTT over TCP
elif port == 1883:
conntype = "TCP"

if not _the_interface.socket_connect(
conntype, host, port, keepalive=10, retries=3
Expand Down