Search found 3 matches

by evan55
Thu Apr 02, 2020 11:03 pm
Forum: ESP8266 boards
Topic: Calling an API in a loop is crashing urequests
Replies: 5
Views: 402

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
by evan55
Tue Mar 31, 2020 12:23 am
Forum: ESP8266 boards
Topic: Calling an API in a loop is crashing urequests
Replies: 5
Views: 402

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.
by evan55
Mon Mar 30, 2020 5:28 pm
Forum: ESP8266 boards
Topic: Calling an API in a loop is crashing urequests
Replies: 5
Views: 402

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) ...