Search found 410 matches

by mattyt
Wed Aug 17, 2022 1:57 am
Forum: Programs, Libraries and Tools
Topic: Are there tools like 'ampy' and 'there' that support websocket connections?
Replies: 15
Views: 10007

Re: Are there tools like 'ampy' and 'there' that support websocket connections?

Adding wireless connectivity to mpremote has been discussed and is likely to happen sooner rather than later...
by mattyt
Wed Aug 17, 2022 1:55 am
Forum: Programs, Libraries and Tools
Topic: How about a CPython library that interacts with REPL?
Replies: 3
Views: 4409

Re: How about a CPython library that interacts with REPL?

The MicroPytrhon-supported pyboard.py can do this (mpremote is built on top of it).
by mattyt
Mon Jul 04, 2022 2:00 pm
Forum: Raspberry Pi microcontroller boards
Topic: [Pico W] WiFi WPS connection?
Replies: 3
Views: 3421

Re: [Pico W] WiFi WPS connection?

I also put some effort in to testing #4464 (which #7452 appeared to be inspired by). It had implemented the WPS functionality but Damien had some reasonable feedback and the PR stalled. If someone wanted to pick up the WPS effort they ought to take a look at this implementation and consider the feed...
by mattyt
Wed Jun 08, 2022 1:30 am
Forum: General Discussion and Questions
Topic: Fast/efficient alternative to bytearray.index()?
Replies: 18
Views: 7777

Re: Fast/efficient alternative to bytearray.index()?

How's your C? If it's reasonable it may be possible to fix the issue! No pressure, it just may be easier than a workaround. The problem is here: py/objstr.c:702 where the type is checked (bytes are implemented using a lot of string code). Need another code path where the type is bytes and the type p...
by mattyt
Tue Jun 07, 2022 2:12 pm
Forum: General Discussion and Questions
Topic: exec on micropython does not recognize local variable
Replies: 2
Views: 2351

Re: exec on micropython does not recognize local variable

In this case, it is different to CPython (to reduce memory use).

See this documented difference: Code running in eval() function doesn’t have access to local variables
by mattyt
Tue Jun 07, 2022 1:50 pm
Forum: ESP32 boards
Topic: Wokwi simulator slower than real ESP32
Replies: 8
Views: 6736

Re: Wokwi simulator slower than real ESP32

It's visible in the REPL window in the lower right after you start running the simulation, before the REPL appears.
by mattyt
Fri Jun 03, 2022 12:04 pm
Forum: General Discussion and Questions
Topic: Is this a bug or a feature?
Replies: 5
Views: 3011

Re: Is this a bug or a feature?

I think it's a bug. From PEP 358, Specification : .index(bytes | int) -> int So my understanding is that index should accept an int. ( PEP 3137 doesn't seem to contradict this behaviour.) For the record I've also tested against 3.10; same result as your test against 3.9. PR's welcome! ;) Actually, e...
by mattyt
Fri Jun 03, 2022 11:12 am
Forum: ESP32 boards
Topic: Wokwi simulator slower than real ESP32
Replies: 8
Views: 6736

Re: Wokwi simulator slower than real ESP32

Note that, when the simulation is running, in the top-right of the Wokwi display there's a dial showing up to 100%; I believe this is an estimate as to the relative speed of the micro simulation. You'll see that it's often below 100%. :)
by mattyt
Sun Feb 20, 2022 7:15 am
Forum: General Discussion and Questions
Topic: Is Micropython ready for industry?
Replies: 21
Views: 40418

Re: Is Micropython ready for industry?

In general, my opinion is that ST devices are more robust and reliable. Further, the MicroPython port is more mature than on the ESP32. That said, I'd still consider the ESP32 range - particularly if I needed wifi and the system wasn't super-critical. I would just allow more time to fix issues if th...