I’m currently trying to use MQTT with Felgo, I’m not using the QT official libraries but it works without SSL.
The problem is the certificate file, I want to use SSL and I need to read a certificate. I can’t open the file like this :
p_sslConfig = QSslConfiguration::defaultConfiguration(); QFile certfile("./broker.emqxio-ca.crt"); Q_ASSERT(certfile.open(QIODevice::ReadOnly)); //! ERROR HERE QSslCertificate cert(&certfile, QSsl::Pem); p_sslConfig.setLocalCertificate(cert); p_client = new QMQTT::Client(MQTT_URL, MQTT_PORT, p_sslConfig);
It seems logic that it’s not working, but how can I add a file to the APK and open it in C++ (Same problem for IOS).
I didn’t find help your documentation, did I miss it or is it even possible ?
I hope you’ll have a solution.
Thank you for your time.