Closed znmeb closed 1 year ago
I don't have a Pico W, so I can't confirm it, but if the network
and socket
modules on the Pico W behave the same way as on the ESP32, the uosc
package and the examples should work on the Pico W as is. Some of the examples use extra modules, included in the examples
directory, which will need to be copied to the boards as well as the uosc
package. The ffilib
module won't work on the Pico W or any other micro-controller board, it is for the unix port only. But this is only imported if __debug__
is true, so if you compile the .py
files with mpy-cross -O1
, it should not be needed. Alternatively, just remove any if__debug__
blocks from the examples code.
I don't have a Pico W, so I can't confirm it, but if the
wlan
andsocket
modules on the Pico W behave the same way as on the ESP32, theuosc
package and the examples should work on the Pico W as is. Some of the examples use extra modules, included in theexamples
directory, which will need to be copied to the boards as well as theuosc
package. Theffilib
module won't work on the Pico W or any other micro-controller board, it is for the unix port only. But this is only imported if__debug__
is true, so if you compile the.py
files withmpy-cross -O1
, it should not be needed. Alternatively, just remove anyif__debug__
blocks from the examples code.
I should have my Pico Ws this week; they're in Los Angeles. So I'll test it out some time soon. Meanwhile, if there's a usable USB network stack in MicroPython, I have a bunch of non-WiFi Picos I could test it with, and also some Arduino Nano RP2040 Connect boards with separate WiFi chips on them that I can test with.
Meanwhile, if there's a usable USB network stack in MicroPython
Sorry, I have no information about that. Maybe ask on the forum.
I can confirm the Client works, just need to make sure you use the Pico W version of MicroPython.
Due to no further feedback and based on the previous comment, I'm assuming that micropython-osc
works on the Raspberry Pi Pico W out-of-the-box.
If you experience any problems with using th etwo together, please open a new issue.
I've got a couple of Raspberry Pi Pico W boards on order. As near as I can tell MicroPython has a full network stack available for the on-board 2.4 GHz WiFi hardware. What would be involved in getting the micropython-osc server running on this board assuming the network stack is there?
https://www.petecodes.co.uk/creating-a-basic-raspberry-pi-pico-web-server-using-micropython/