Closed qwyinxiang closed 2 weeks ago
Yes, it's possible. Some time ago I wrote a small demo project which illustrates how to connect.
Take a look at the function QmlQmqttClient::connectToHost()
for details on the connection.
To use websockets you have to compile QMQTT
with websocket support (I think it's disabled by default). See QMQTT
's readme for details on how to build.
Can I connect mqtt server using wss,is there any examples? thank you very much.