Search found 84 matches

by Christian Walther
Thu Jan 30, 2020 9:39 pm
Forum: General Discussion and Questions
Topic: Properly checking for errors during a WiFi connection?
Replies: 11
Views: 957

Re: Properly checking for errors during a WiFi connection?

They are in the network module, not in the global environment: network.STAT_CONNECTING etc. See help(network).
by Christian Walther
Thu Jan 30, 2020 9:35 pm
Forum: Other Boards
Topic: Wemos W600-Pico
Replies: 17
Views: 689

Re: Wemos W600-Pico

If it has a filesystem, I assume it will execute boot.py and main.py when it starts, like the other ports. ( See docs , it looks like they’re only mentioned on port-specific pages.) If not, there is no way apart from building your own firmware. Although you may have trouble getting the files there i...
by Christian Walther
Thu Jan 23, 2020 6:23 pm
Forum: General Discussion and Questions
Topic: get programs on a board?
Replies: 3
Views: 154

Re: get programs on a board?

Not to forget WebREPL, which is actually mentioned in the official docs – although maybe the fact that it also has the ability to transfer files is too easily overlooked there. pyboard.py is also documented , but maybe there should be a link to it on the “quick reference” pages. on windows the only ...
by Christian Walther
Sun Jan 19, 2020 10:31 am
Forum: General Discussion and Questions
Topic: ctypes into uctypes for crc communication
Replies: 2
Views: 484

Re: ctypes into uctypes for crc communication

I’m not sure why they’re using ctypes here, ctypes is for calling C functions and there are no C functions being called here. It seems all they want is to slice 8 bits out of an integer, which is easily done using the & operator, no ctypes needed. The following seems to work for me in CPython, givin...
by Christian Walther
Thu Jan 02, 2020 11:49 am
Forum: Programs, Libraries and Tools
Topic: Does WebREPL have input size limit?
Replies: 2
Views: 154

Re: Does WebREPL have input size limit?

It’s a known limitation: https://github.com/micropython/micropython/issues/2497 Also note that the current WebREPL protocol is not 8-bit-safe. That’s probably okay if you only transfer program text, but it won’t work for pushing arbitrary file content through the REPL stream (file transfer operation...
by Christian Walther
Mon Dec 30, 2019 6:08 pm
Forum: ESP8266 boards
Topic: Enable webrepl daemon with script
Replies: 4
Views: 237

Re: Enable webrepl daemon with script

The easiest way to achieve the same state as if you had configured it manually is to copy the boot.py and webrepl_cfg.py files that are generated by the manual configuration to the board.

Check the source to see what import webrepl_setup does.
by Christian Walther
Sun Dec 29, 2019 10:26 pm
Forum: ESP8266 boards
Topic: Build how to?!?
Replies: 13
Views: 493

Re: Build how to?!?

I’ve had good success with the Docker image recommended by jimmo. Really easy, nothing to install except Docker, no versioning conflicts.
by Christian Walther
Thu Dec 26, 2019 10:21 pm
Forum: ESP8266 boards
Topic: Can't load firmware on Huzzah's
Replies: 4
Views: 238

Re: Can't load firmware on Huzzah's

mcL wrote:
Thu Dec 26, 2019 7:11 pm
boot loop
In my experience, this is a symptom of using the wrong flash mode. Try different values for the -fm argument of esptool.py.

(That doesn’t explain the inability to erase_flash though.)
by Christian Walther
Thu Dec 26, 2019 12:14 pm
Forum: General Discussion and Questions
Topic: Import silently Fails
Replies: 10
Views: 321

Re: Import silently Fails

jimmo wrote:
Thu Dec 26, 2019 2:50 am
I'm not aware of a way to unload a module in MicroPython, other than to soft-reset (via Ctrl-D at the REPL)

Code: Select all

del sys.modules['mymodule']
by Christian Walther
Fri Dec 20, 2019 12:26 pm
Forum: ESP8266 boards
Topic: uPycraft with mpy file
Replies: 12
Views: 502

Re: uPycraft with mpy file

(response in English for other readers) It is normal that nothing happens after the first time when using import because the module is cached. In order to run it several times, do del sys.modules['chauf'] in between to clear the cache ( import sys if needed). If you have both chauf.py and chauf.mpy ...