
Sam (Customer) asked a question.
Productivity Open MQTT with TLS
I'm new to Arduino and trying to connect my P1AM-100 with ethernet card to our MQTT cloud server using TLS. Is there a particular library or technique that is recommended in conjunction with the ArduinoMQTTClient library? My code thus far is roughly based on the MQTT example code on the github.
This library and README has a lot of info about getting TLS going on SAMD boards like the P1AM: https://github.com/OPEnSLab-OSU/SSLClient
The README contains some important setup info for speed and compatibility so give it a good read. I haven't played around with this personally, but I think @JohnnyG89 (Customer) has.
Answered this on the old forum:
https://forum.automationdirect.com/forum/open-source-devices/productivityopen-p1am/128075-facts-p1am-example-series-1-mqtt-call-and-response
check out my repo, I've got it there. It takes like 8s to do a SSL handshake though.
https://github.com/JohnnyG89/SeaDragon
Hi all, does anyone have a way to view the link @JohnnyG89 (Customer) referenced above? The old forum is no longer redirecting.
Also, it looks like the SeaDragon repo has been removed, anyone have a fork of it? Thanks in advance!
Any nicknames or threads in the old forum will no longer work. We imported all threads into this forum format and should be searchable.
You can find the Facts example at the link below:
https://github.com/AutomationDirect/P1AM-Examples/tree/master/P1AM-100%20Example%20Series/ES1_P1AM-100_MQTT_Call_And_Response
Thanks for the quick response. I was hoping to see an example of using HTTPS using the P1AM-ETH. Supposedly, Johnny had it working in his SeaDragon project.
Do anyone have an example of doing a https connection using the arduino/P1AM-ETH?
Thanks again
Check out this library: https://github.com/OPEnSLab-OSU/SSLClient
I believe it was what was used in the SeaDragon project and it also has an HTTPS example. You will have to modify the ethernet library source per the notes in the "implementation gotchas" section.