phyphox / phyphox-arduino

The phyphox BLE library to connect Arduino projects with the phyphox app to display data on the phone or use the phone's sensors on the Arduino
https://phyphox.org/arduino
GNU Lesser General Public License v3.0
65 stars 18 forks source link

Raspberry Pi Pico W support #7

Open GGORG0 opened 1 month ago

GGORG0 commented 1 month ago

Hi, is the Pico W supported by default, or can support for it be implemented?

Docs on the official arduino-pico wiki: https://arduino-pico.readthedocs.io/en/latest/bluetooth.html

Staacks commented 1 month ago

Supporting new Arduinos is simple if they use one of the BLE libraries that our library already supports (ArduinoBLE or the ESP32 libraries). If not, support can be implemented, but it is a bit more work as everything needs to be wrapped accordingly.

I absolutely love the rp2040, but so far I have only worked with the pico SDK directly - I have never tried Arduino Pico. But from what I can see, it is not implementing ArduinoBLE, but wrapping the Pico SDK functions. So, it is not the quick solution.

Now I am wondering if the BLE support ever became stable, because the last time I used BLE with a Pico W (again directly via Pico SDK and not phyphox related) it was still very experimental and very complicated. (Even the licencing of the BTstack stuff was a mess back then.) Looking at the Pico SDK docs it looks ok, but still rather complicated, but the Arduino Pico project seems to simplify a few things, so it seems doable.

Unfortunately, I cannot say when anyone from the phyphox team has some spare time to look into it, so for now it is on the massive "more ideas" section of our todo list...