How do I perform a secure MQTT using QtMqtt and SSL?
问题 I am trying to use a QtMQtt example project simpleclient. But I want to perform a secure MQTT. How do I approach this? I have read this blog (https://www.qt.io/blog/2017/08/14/introducing-qtmqtt-protocol). But this does not help me much. Do I have to use QsslSocket's connectToHostEncrypted() or should I use QTMQTT clients's connectToHostEncrypted() If I use QTMQTT clients's connectToHostEncrypted(). It only allows me to set sslpeername. It does not allow me set certificate or private key Or