Search found 52 matches

by Christian Walther
Fri Jun 28, 2019 4:51 pm
Forum: ESP32 boards
Topic: Standard library inclusions
Replies: 2
Views: 169

Re: Standard library inclusions

Many of the basic library modules (like machine ) are integrated in the firmware and do not need to be installed on the filesystem. Run help('modules') to see which. Additional libraries can be installed either using upip (which is built-in as well, if I remember correctly) or by copying them to the...
by Christian Walther
Sun Jun 23, 2019 3:32 pm
Forum: ESP8266 boards
Topic: ESP8285 ESP-01M
Replies: 4
Views: 195

Re: ESP8285 ESP-01M

I presume MicroPython will work on any of these devices. Yes. They are all the same chip. The regular D1 mini has an ESP8266 with external 4 MB flash, not an ESP8285. I just see that there is a “D1 mini Lite” with an ESP8285 though. I am not familiar with that one. (There is also a “D1 mini Pro” wi...
by Christian Walther
Fri Jun 21, 2019 6:19 pm
Forum: ESP8266 boards
Topic: Only power sensor when not in deep sleep
Replies: 9
Views: 280

Re: Only power sensor when not in deep sleep

Only slightly larger than an ESP-01 module, this is the smallest full-featured ESP8266 (actually, ESP8285 = ESP8266 + 1 MB flash) board I have: https://www.tindie.com/products/onehorse/esp8285-development-board/ For the ESP32, I would check out the TinyPICO: https://www.crowdsupply.com/unexpected-ma...
by Christian Walther
Thu Jun 20, 2019 11:54 am
Forum: General Discussion and Questions
Topic: Need help freeing memory from unused modules
Replies: 13
Views: 454

Re: Need help freeing memory from unused modules

My program runs for about 10 seconds and goes into deep sleep for about 10 minutes, then repeats. It seems like the memory is getting fragmented from this behaviour. I would consider that unlikely. The wake from deep sleep is a reset, so you are starting with a fresh heap every time. Does micropyth...
by Christian Walther
Thu May 30, 2019 11:16 am
Forum: General Discussion and Questions
Topic: OSError: no available NIC after Soft-Reset
Replies: 5
Views: 292

Re: OSError: no available NIC after Soft-Reset

Neither of you state what hardware you are using, so nobody can tell whether it’s something they are familiar with and could answer. You’d probably get a better chance at useful answers by posting in a board-specific forum rather than “General Discussion”.
by Christian Walther
Tue May 21, 2019 8:54 pm
Forum: Other Boards
Topic: STM32L476: can´t convert int object to str implicitly
Replies: 4
Views: 224

Re: STM32L476: can´t convert int object to str implicitly

I’m not totally sure because my experience with them is limited, but it would seem that on STM32 platforms, the pins are named by strings like "A0", not by numbers like on the ESP platforms. See http://docs.micropython.org/en/latest/pyboard/quickref.html , and pin9 = Pin('B1', Pin.IN) works on my Py...
by Christian Walther
Sun May 19, 2019 12:48 pm
Forum: ESP8266 boards
Topic: how to plot?
Replies: 7
Views: 313

Re: how to plot?

Any reason why you need to use MicroPython rather than CPython (“real Python” as you call it) on the laptop? And if you do, then there is no ESP8266 involved, so why are you posting in the ESP8266 forum? I suspect this is not what you want to do at all. Rather, I guess what you want to do is somethi...
by Christian Walther
Sat May 18, 2019 7:21 pm
Forum: ESP8266 boards
Topic: send HTTP Request ESP8266
Replies: 16
Views: 724

Re: send HTTP Request ESP8266

Now there’s one slash too many in the other place, maybe your browser is smart enough to strip that but urequests isn’t? Try urequests.get('http://192.168.137.1:80/info.php?request=sam') Since it looks like this is a web server running on your local network, you could also take a look at its logs an...
by Christian Walther
Sat May 18, 2019 5:38 pm
Forum: ESP8266 boards
Topic: send HTTP Request ESP8266
Replies: 16
Views: 724

Re: send HTTP Request ESP8266

I flashed my esp8266 and now I can see urequests there with the get function : Glad we got that one solved! >>> response = urequests.get('http:/192.168.137.1:80/info.php?requests=sam') I don’t know if that’s the source of the error, but you’re missing a slash in that URL. Should be http://192... . ...