The following script causes OOM within 10 minutes on a Pico W whereas it runs without leaking memory on a Nano ESP32.
Both are using the same firmware 20230816-unstable-v1.20.0-379-ga18d62e06:
import gc, time
import urequests as requests
while True:
gc.collect()
print(gc.mem_free(), gc.mem_alloc())
telegram = "https://google.com"
requests.post(telegram)
time.sleep(60)
The following script causes OOM within 10 minutes on a Pico W whereas it runs without leaking memory on a Nano ESP32.
Both are using the same firmware 20230816-unstable-v1.20.0-379-ga18d62e06: