Search found 3 matches
- Thu Apr 02, 2020 11:03 pm
- Forum: ESP8266 boards
- Topic: Calling an API in a loop is crashing urequests
- Replies: 6
- Views: 4397
Re: Calling an API in a loop is crashing urequests
Scratch my earlier comment, moving to a D1 Mini just made it take longer until the problem occurred
- Tue Mar 31, 2020 12:23 am
- Forum: ESP8266 boards
- Topic: Calling an API in a loop is crashing urequests
- Replies: 6
- Views: 4397
Re: Calling an API in a loop is crashing urequests
well, it appears to be a hardware or flash issue. I uploaded the exact same code to a wemos d1 mini that I had laying around, and it works fine.
pretty bizarre and a bit scary if you ask me.
pretty bizarre and a bit scary if you ask me.
- Mon Mar 30, 2020 5:28 pm
- Forum: ESP8266 boards
- Topic: Calling an API in a loop is crashing urequests
- Replies: 6
- Views: 4397
Calling an API in a loop is crashing urequests
Hello, I have some simple code to call an api, looping every 5 seconds. It successfully calls the API 4 times, but crashes after the 4th time. Hardware is a NodeMCU flashed with latest micropython Here is the code import urequests from machine import Pin from time import sleep led = Pin(2, Pin.OUT) ...