We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 67c67ca commit 05018ecCopy full SHA for 05018ec
adafruit_espatcontrol/adafruit_espatcontrol.py
@@ -188,6 +188,9 @@ def socket_connect(
188
can be an IP address or DNS (we'll do the lookup for you. Remote port
189
is integer port on other side. We can't set the local port"""
190
# lets just do one connection at a time for now
191
+ if conntype == self.TYPE_UDP:
192
+ # always disconnect for TYPE_UDP
193
+ self.socket_disconnect()
194
while True:
195
stat = self.status
196
if stat in (self.STATUS_APCONNECTED, self.STATUS_SOCKETCLOSED):
0 commit comments