Skip to content

Add ESP32-S2 (Native Networking) and CPython #61

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 78 commits into from
Feb 3, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
78 commits
Select commit Hold shift + click to select a range
2600c1e
starting to bring over session, update licensing
Nov 16, 2020
1db4bad
add _get_socket
Nov 16, 2020
7d74dbf
BREAKING _init_, should match paho mqtt
Nov 16, 2020
afabde4
dont break init, leave alone for now
Nov 16, 2020
10dfa0b
add username_pw_set, make username/pass private
Nov 16, 2020
8dae98f
refactor logger class, add enable_logger, disable_logger
Nov 16, 2020
722ecda
hook logging
Nov 16, 2020
971903d
remove Session, socket pool impl. instead
Nov 16, 2020
29bc57d
Add socketpool, ssl context to constructor
Nov 16, 2020
c14b990
bring in socketpool helper methods
Nov 16, 2020
95efa9e
add _get_socket helper, replace code in connect, modify connect signa…
Nov 16, 2020
d400267
connects, try cpython native logging first
Nov 18, 2020
964ac36
specify exception, cpython logging second for circuitpy clients
Nov 18, 2020
966bae7
encode topic as bytes, wait_for_msg BlockingIOError
Nov 18, 2020
f1e3fbe
fix BlockingIOerror, not calling on_message?
Nov 18, 2020
a43035e
on_message works with subscriptions
Nov 18, 2020
7cdcc32
encode topic within unsubscribe
Nov 18, 2020
baa1fc4
remove is not none statement from logger calls
Nov 18, 2020
0c05e65
remove positional call to _wait_for_msg
Nov 18, 2020
1a65b92
pylint minimqtt, add simpletest for cpython
Nov 18, 2020
cb322ed
use secrets' username
Nov 18, 2020
1d78c0f
add cpython example for AIO, tested
Nov 18, 2020
4af0ad0
socket exists, but ssl.SSLWantReadError persists?
Nov 19, 2020
fbfb6ec
CircuitPython lacks select() module, use socket timeouttype instead o…
Nov 19, 2020
8492a58
backwards compat. recv, adding shared buffer impl to save memory
Nov 19, 2020
984c600
add shared buffer, connect tested
Nov 19, 2020
a907575
public command methods use shared rx buffer
Nov 19, 2020
2ae61a4
convert recv_len into recv_into
Nov 20, 2020
6ebf233
recv->recv_into calls
Nov 23, 2020
5356318
resize the rx buffer dynamically
Nov 23, 2020
b9740e3
add example for esp32s2
Nov 23, 2020
e7c48e3
no more blocking error since we are using timeouts
Nov 23, 2020
5b29419
legacy socket compat, untested secure port
Nov 25, 2020
0a3ee4f
add fake SSL context, legacy api
Nov 25, 2020
869a1ff
add fakessl socket, working on esp32, cpython
Nov 25, 2020
2560c57
expand enable_logger, remove logging dependency for library (yay!)
Nov 25, 2020
c1d3f06
move examples into folders
Nov 25, 2020
b3b0881
Fix hang on _wait_for - attempt blocking read for cpython, s2. works …
Nov 30, 2020
ee19319
switch to settimeout for socketpool consistency
Dec 16, 2020
76ab54a
timeout instead of nonblocking to avoid cpython ssl error
Dec 16, 2020
65afbd5
addressing https://github.com/adafruit/Adafruit_CircuitPython_MiniMQT…
Jan 29, 2021
cd8d954
pull in _sock_exact_recv and modify it for a cpython/socketpool imple…
Jan 29, 2021
cb16a27
switch to _exact_recv on publish(), assert self._pid instead of unbou…
Jan 29, 2021
e2b7fa0
switch to _exact_recv on subscribe() calls
Jan 29, 2021
f0907a4
update ping, unsubscribe. add timeout kwarg to loop
Feb 1, 2021
ea96633
update recv_len to master, bound pid to 0 so it can never be unbound
Feb 1, 2021
fc31e2d
remove buf, decode on_message within wait_for_msg
Feb 1, 2021
f34b80f
_check -> _valid, remove unused set_interface method
Feb 1, 2021
6e56ddb
remove shared rx_buffer, simplify logging API!
Feb 1, 2021
609ab86
cpython catch
Feb 1, 2021
6db42d2
private user_data attribute!
Feb 1, 2021
1f6bfd6
examples suffixed with folder name
Feb 1, 2021
32bea54
port AIO to ESP32S2 example
Feb 1, 2021
625fef6
add blocking example for nativenetworking
Feb 1, 2021
07c417f
_callbacks should interface with Adafruit IO groups instead of tradit…
Feb 1, 2021
cfb61c3
CPython examples non-ssl
Feb 1, 2021
0a81e84
add licensing info
Feb 1, 2021
2fa79ba
remove logging dep, yay
Feb 1, 2021
629ecb0
black/lint all
Feb 1, 2021
93c55af
lint
Feb 1, 2021
96b681d
black
Feb 1, 2021
3b9a2f5
push fix
Feb 1, 2021
ee4f29a
merge master
Feb 1, 2021
81a2417
fix copyrightlicense
Feb 1, 2021
e3d662f
remove vscode from examples again
Feb 1, 2021
d77e588
black precommit
Feb 1, 2021
094c2f8
fix line length
Feb 1, 2021
f732a15
fix indentation:
Feb 1, 2021
10177a6
trim
Feb 1, 2021
91faed7
more verbose qos docstring
Feb 1, 2021
5dbfe90
docstring again
Feb 1, 2021
49ca671
docstring again2
Feb 1, 2021
885e7d4
unindent
Feb 1, 2021
53c8ea4
remove print()
Feb 1, 2021
ecdf956
shorten line
Feb 1, 2021
d0f32a3
unsub shorten
Feb 1, 2021
341859b
fix inher. autodoc issues
Feb 1, 2021
5038331
trailing
Feb 1, 2021
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
1 change: 0 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ Dependencies
This driver depends on:

* `Adafruit CircuitPython <https://github.com/adafruit/circuitpython>`_
* `Adafruit Logging <https://github.com/adafruit/Adafruit_CircuitPython_Logging>`_

Please ensure all dependencies are available on the CircuitPython filesystem.
This is easily achieved by downloading
Expand Down
Loading