Skip to content
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

Net reorg #2

Merged
merged 14 commits into from
Jun 13, 2024
Merged

Net reorg #2

merged 14 commits into from
Jun 13, 2024

Conversation

chrisgilldc
Copy link
Owner

Reorganized network communications into a base class, with platform-specific subclasses for cpython (linux) and CircuitPython.

Reorganizing the network into a cpython and circuitpython branch to work around adafruit_minimqtt issues. Reworking discovery and message generation to be smoother and more reliable.
* Fix meminfo publication on linux
* Fix cleanup when terminating
* Propogate log level when setting up network.
* Update displays to have both id and name parameters.
…y as part of connect() method, Create stud for _connect_wifi() method, generally reorganize methods.
…dd method overrides with propert MiniMQTT syntax.
…yloads. This *should* be fixed upstream, really, but I don't have a better fix.

README - Found the source of connect failures on my Metro M4 Circuitpython testing, which is actually pystack exhaustion. Added note about increasing that for the M4.
Circuitpython - Add auto-logging of MQTT client object when set to debug. Commented out for now due to chattiness. This should probably be its own config option when I refactor all of this.
Wifi - Add retry limit and time options to allow some connection errors to be retries. This is to specifically cover the case where a specific SSID isn't found on the first scan, as someitmes happens during my testing.
code.py - Cleaned up instantiation for Circuitpy briefly.
Linux - Catch exceptions for cannot connect, mark those as recoverable and ensure the system retries.
CircuitPython - Implement memory use reporting.
Linux - Add some Todo notes.
@chrisgilldc chrisgilldc merged commit b902c24 into main Jun 13, 2024
@chrisgilldc chrisgilldc deleted the net-reorg branch June 13, 2024 01:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant