-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit 98d0a2b
umqtt.simple: Restore legacy ssl/ssl_params arguments.
Commit 35d41db changed the API for using
SSL with umqtt, but only did a minor version increase. This broke various
uses of this library, eg
https://github.com/aws-samples/aws-iot-core-getting-started-micropython
Reinstate the original API for specifying an SSL connection. This library
now supports the following:
- default, ssl=None or ssl=False: no SSL
- ssl=True and optional ssl_params specified: use ssl.wrap_socket
- ssl=<SSLContext instance>: use provided SSL context to wrap socket
Signed-off-by: Damien George <damien@micropython.org>1 parent 96e17b6 commit 98d0a2b
2 files changed
+11
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | - | ||
1 | + | ||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | + | ||
6 | + | ||
5 | 7 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | + | ||
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
29 | + | ||
28 | 30 | | |
29 | 31 | | |
30 | 32 | | |
| |||
65 | 67 | | |
66 | 68 | | |
67 | 69 | | |
68 | - | ||
70 | + | ||
71 | + | ||
72 | + | ||
73 | + | ||
74 | + | ||
75 | + | ||
69 | 76 | | |
70 | 77 | | |
71 | 78 | | |
| |||
0 commit comments