I have tried MQTT Client from an example with no porblem. Next, i want to use hivemq cloud that used secure connection TLS. I can not find sourcecode or example how to implement AsyncMqttClient with TLS secure conection.
Anyone have experienced , please advice me . Thanks so much.
They have this example: https://github.com/marvinroger/async-mqtt-client/blob/2991968a97193aaa6402d146490b93ea671c7e02/examples/FullyFeaturedSSL/src/main.cpp
However, I was not able to get it working. I’m not sure if I did something wrong when I tried it, or if there’s something wrong with the example.
I advise you to try that example and see if that works for you.
I hope this helps.