Replies: 1 comment 3 replies
-
It's not built as part of the core, and it doesn't use the standard Arduino interfaces. While you could use it, I suppose, by adding it to the build and manually using the raw LWIP interfaces, I don't see any reason or benefit to doing so. The existing Arduino MQTT libraries all seem to work well for users, and have many examples and real-world deployments. One other reason not to do it would be that the LWIP version only works on raw connections. You can't use TLS or client certificates like you can with the Arduino-based libraries. So that's a big negative there. |
Beta Was this translation helpful? Give feedback.
3 replies
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
-
There are many IoT projects that can be made using Arduino-pico, where I made some of them. Most IoT devices use the MQTT protocol to communicate. I believe most users download popular Arduino MQTT libraries, such as pub-sub. While we already have an unused MQTT library built in!
Arduino-pico includes the raspberry pi pico SDK. The pico SDK includes a library called lwIP, which is a lightweight TCP/IP stack. It handles all the networking.
This lwIP library contains ready to use applications where one of the applications is the MQTT protocol.
src/include/lwip/apps/mqtt.h at https://github.com/lwip-tcpip/lwip
Now, I am not sure how to include this library to Arduino-pico, but I have got it working on the bare pico-SDK. But it is undoubtedly a great addition to Arduino-pico. Ofcourse all the other apps are very interesting as well.
Are there any reasons why this is not included already? Technical limitations? Maybe we didn’t know before?
How could it be implemented? Perhaps the way Arduino handles wifi?
Beta Was this translation helpful? Give feedback.
All reactions