arduino-libraries / ArduinoIoTCloud

https://app.arduino.cc
Other
112 stars 78 forks source link

How to add a supported board? #486

Open ssilverman opened 4 months ago

ssilverman commented 4 months ago

What is the process for adding to the supported board list? I’d like to add Teensy support. Just so it’s clear: I’d be doing the work.

Note that Arduino_ConnectionHandler would be the place that’s likely to need the majority of changes. See my rudimentary attempt here: https://forum.pjrc.com/index.php?threads/arduino-cloud.75415/post-346067

ssilverman commented 4 months ago

Update: I got everything building (with BearSSLClient, but there's no ECCX08 chip), but the "only" thing missing is a proper TLS client. That'll take some work to adapt something. This won't be quick, and it's just a side project that I may or may not get to.

pennam commented 4 months ago

If you haven't an ECCX08 chip you should follow the ESP32 path using username and password for mqtt authentication

https://github.com/arduino-libraries/ArduinoIoTCloud/blob/8b6ff40997530f6ac490704d7bca6c6dc7eda1df/src/ArduinoIoTCloudTCP.cpp#L151-L156

The only thing you need to setup the TLS client are the root certificates and create your trust anchors:

https://github.com/arduino-libraries/ArduinoIoTCloud/blob/8b6ff40997530f6ac490704d7bca6c6dc7eda1df/src/tls/AIoTCUPCert.h#L251