You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue appeared while using esp32SPI WiFi connections.
In my application I will often fire off some code that will perform some internet requests but then needs to clean everything up to free up space and resources. Depending on what the user does, the internet code may be fired up again or a different chuck of code that uses the same pin/spi resources my be run. Before connection manager I would simply deinit and close everything I could between uses which still mostly works but I've needed to add adafruit_connection_manager._global_socketpool.clear() to my list of deinits.
As the _global_socketpool is technically private data it would be nice if there was a "proper/official" API to get this done.
This is the code snippet I've been using to test the issue
@RetiredWizard there are a few things that would need to be cleaned up. I've opened #8, which is unrelated but want to get that in first before I add a method to close everything
This issue appeared while using esp32SPI WiFi connections.
In my application I will often fire off some code that will perform some internet requests but then needs to clean everything up to free up space and resources. Depending on what the user does, the internet code may be fired up again or a different chuck of code that uses the same pin/spi resources my be run. Before connection manager I would simply deinit and close everything I could between uses which still mostly works but I've needed to add
adafruit_connection_manager._global_socketpool.clear()
to my list of deinits.As the _global_socketpool is technically private data it would be nice if there was a "proper/official" API to get this done.
This is the code snippet I've been using to test the issue
The text was updated successfully, but these errors were encountered: