forked frommicropython/micropython-lib
- Notifications
You must be signed in to change notification settings - Fork0
Commitd6faaf8
umqtt.simple: Add optional socket timeout to connect method.
If there are any network issues, mqtt will block on the socketnon-deterministically. This commit introduces a `timeout` option whichcan be used to set a finite timeout on the socket. Upon any issue, mqtthlib will throw exception.1 parent68e3e07 commitd6faaf8
2 files changed
+3
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
| 63 | + | |
64 | 64 | | |
| 65 | + | |
65 | 66 | | |
66 | 67 | | |
67 | 68 | | |
| |||
0 commit comments
Comments
(0)