rp2040 connect BlueTooth and Wifi

RP2040 based microcontroller boards running MicroPython.
Target audience: MicroPython users with an RP2040 boards.
This does not include conventional Linux-based Raspberry Pi boards.
Post Reply
outkasst1
Posts: 2
Joined: Sun Jul 03, 2022 11:56 pm

rp2040 connect BlueTooth and Wifi

Post by outkasst1 » Mon Jul 04, 2022 12:01 am

Hi All,

Can anyone please point me to Bluetooth Python code/Module and Wifi/Module Code for Nano RP2040 Connect board?
I am struggling , tried the example code that comes with OpenMV , but none seems work or may be i dont know how to make these work.

Total NOOB here.. appreciate the patience..

thx
Outkast

User avatar
jimmo
Posts: 2754
Joined: Tue Aug 08, 2017 1:57 am
Location: Sydney, Australia
Contact:

Re: rp2040 connect BlueTooth and Wifi

Post by jimmo » Mon Jul 04, 2022 1:37 am

outkasst1 wrote:
Mon Jul 04, 2022 12:01 am
Wifi/Module Code
WiFi: There is no specific documentation for this board yet (but now with the Pico W too we will likely add it), but it works the same as on other ports. See the "network" module at https://docs.micropython.org/en/latest/ ... .WLAN.html and quick ref for ESP32 at https://docs.micropython.org/en/latest/ ... networking

Once WiFi is connected, it works like regular python ("socket", etc). You can use the urequests library to make HTTP requests etc.

https://github.com/micropython/micropyt ... equests.py

Right now you'll have to install urequests.py manually, but I've raised https://github.com/micropython/micropython/pull/8856 to get it added to the default firmware.
outkasst1 wrote:
Mon Jul 04, 2022 12:01 am
Bluetooth Python code/Module
Bluetooth is documented at https://docs.micropython.org/en/latest/ ... tooth.html

As per the note at the top of the page, I recommend using aioble (which is installed by default on this board).

Post Reply