rilesfr / ESP32-SENIOT-MicroPy-Code

Micropython code used for our measurements project that runs on the ESP32.
0 stars 0 forks source link

multiple requests with urequests breaks the program / runtime #1

Closed rilesfr closed 2 years ago

rilesfr commented 2 years ago

image the second post will always fail, will have to take a look at urequests docs on how to fix this possibly have to close and re-open the connection

optimally we would do this all in a single request(!!!) but our database structure is not setup for that right now unfortunately

rilesfr commented 2 years ago

fixed in https://github.com/larsddj/ESP32-SENIOT-MicroPy-Code/commit/3b75a94cdcb0ad9a6cb84639b82ac7bb7242227b turns out even if a response variable is not assigned a response is still active and opened for urequests, breaking the request that follows.