Skip to content

Commit

Permalink
Increased the timeout for socket_connect().
Browse files Browse the repository at this point in the history
  • Loading branch information
waiweng83 committed Jul 26, 2021
1 parent 1467795 commit b83aa37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion adafruit_espatcontrol/adafruit_espatcontrol.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ def socket_connect(self, conntype, remote, remote_port, *, keepalive=10, retries
+ ","
+ str(keepalive)
)
replies = self.at_response(cmd, timeout=3, retries=retries).split(b"\r\n")
replies = self.at_response(cmd, timeout=10, retries=retries).split(b"\r\n")
for reply in replies:
if reply == b"CONNECT" and self.status == self.STATUS_SOCKETOPEN:
return True
Expand Down

0 comments on commit b83aa37

Please sign in to comment.