Closed mwweinberg closed 11 months ago
It looks like the problem was that I was unintentionally opening a second set of sockets as part of creating the requests object. Replacing this line:
requests = requests.Session(pool, ssl.create_default_context())
with this line:
requests = funhouse.network._wifi.requests
allows requests to use the socket that was already created for the IO stuff.
I'm having problems using requests while also pushing data to adafruit io.
The code below works when it is run as is. However, if I try to upload sensor data by uncommenting the lines:
I get an error:
I'm running all of this on a funhouse attached to a PMSA003I Air Quality Breakout (https://www.adafruit.com/product/4632) with the 20230718 library bundle. The target URL returns a 129 byte payload. Does this look like a known problem? Thanks!