After a fresh install it works fine until either (i) power is removed and then re-applied or (ii) an error is introduced into the code during rounds of code editing. After either of things happen the code always fails at the line
Code: Select all
picowTemp_feed = io.get_feed("pitemp")
File "adafruit_requests.py", line 527, in _get_socket
OSError: (-29312, 'MBEDTLS_ERR_SSL_CONN_EOF')
What is really strange is that before a power cycle or debugging error the code works fine - uploading temp/humidity data as expected. Once the error has occurred, the board can only be reset by reloading the CircuitPython.uf2 file which is a sort of work around (but this approach doesn't allow the board to operate autonomously away from a computer which is annoying..).
So assuming I must be doing something really stupid, does anyone have CP code for a Pi Pico W that in their hands appropriately uploads data to Adafruit IO? If so, can you kindly share??
Many thanks, but I'm not really interested in suggestions to use WipperSnapper - that indeed works just fine in my hands, but as I'm looking to do more than just upload simple sensor data once I get going, that isn't really a solution...