Search found 4 matches

by jairov96
Sun Aug 07, 2022 3:32 pm
Forum: ESP32 boards
Topic: ENOMEM when sending request
Replies: 1
Views: 1352

Re: ENOMEM when sending request

Turns out the only thing I need to do in order to fix a problem is post it in the forum. After a bit of tinkering I figured that it's a good practice to actually close the response! def sendPostRequest(url, headers, data): try: response = urequests.post(url, headers=headers, data=data) if response.s...
by jairov96
Sun Aug 07, 2022 12:13 pm
Forum: ESP32 boards
Topic: ENOMEM when sending request
Replies: 1
Views: 1352

ENOMEM when sending request

Hello! As you are most likely about to see, efficient code is not quite my thing. Coding isn't either, but I try :lol: Running in an ESP-Wroom-32 I'm running into some issues where my code permanently returns "ENOMEM" error codes when trying to run the function sendPostRequest() pastecode import mac...
by jairov96
Sun Aug 07, 2022 11:48 am
Forum: ESP32 boards
Topic: Can't import 'machine' module, tries to import fake_machine
Replies: 2
Views: 2331

Re: Can't import 'machine' module, tries to import fake_machine

Turns out it was an error of the IDE I was using, which was pymakr.

Really weird! When loading the exact same file using any other IDE, everything works as intended.
by jairov96
Sat Aug 06, 2022 2:39 pm
Forum: ESP32 boards
Topic: Can't import 'machine' module, tries to import fake_machine
Replies: 2
Views: 2331

Can't import 'machine' module, tries to import fake_machine

Hello! I'm already trying to figure out for a few days the hell is wrong with my environment. I bought a board ESP-Wroom-32 and a temperature sensor, and I'm trying to make everything work. Whenever I try to import the "machine" module, it returns "Importerror: no module named 'fake_machine' " This ...