Replies: 3 comments 1 reply
-
How are you powering the ESP32 when it's not connected to the PC?
FWIW, you can write
Can you clarify exactly what you mean here? |
Beta Was this translation helpful? Give feedback.
-
Maybe the following might give more information: try:
req = urequests.get(url)
except OSError as error:
try:
with open('errors.txt', 'a') as outfile:
outfile.write(str(error) + '\n')
except OSError:
pass |
Beta Was this translation helpful? Give feedback.
-
Alright, the problem was somehow my VSCode Setup. ive switched to Thonny and everything worked as intended, thanks for helping! |
Beta Was this translation helpful? Give feedback.
-
On my ESP32 im currently running micropython v1.19 with vscode and pymakr.
My Code looks like this:
The problem that i have is when im testing this in vscode everything runs fine and the build in led acts accordingly to what im returning through the response. However when i unplug the ESP32 from my PC and boot it up at the same location it doesnt create an response. ive tested with the build in led and it cant get past this line:
req = urequests.get(url)
any ideas why it doesnt work standalone, but works just fine while connected to vscode?
Beta Was this translation helpful? Give feedback.
All reactions