256dpi / arduino-mqtt

MQTT library for Arduino
MIT License
1.01k stars 231 forks source link

RP2040 seems to work fine #314

Open savejeff opened 7 months ago

savejeff commented 7 months ago

Just wanted to inform that i tested arduino-mqtt on RP2040 / Raspberry Pi Pico W and with the earlephilhower/arduino-pico Core Here it works out of the box no issues!

Would be cool to have this added to the Readme, as it currently is not officially stated to work with RP2040

Great stuff

256dpi commented 6 months ago

Would you be up for contributing an example for the RP2024?

savejeff commented 6 months ago

the examples run out of the box, no midifications needed. You have to use the earlephilhower/arduino-pico and just compile.

For Platformio here an example configuration:


[env:BOARD_RP2040_PICO_W]
platform = https://github.com/maxgerhardt/platform-raspberrypi.git
platform_packages = framework-arduinopico@https://github.com/earlephilhower/arduino-pico.git
board = rpipicow
board_build.core = earlephilhower
board_build.filesystem_size = 0.5m

the arduino core mimics the ESP32 core. so just include wifi: #include <WiFi.h>