qmqtt是MQTT的Qt客户端开发包。
示例代码:
#include "qmqtt.h"QMQTT::Client *client = new QMQTT::Client("localhost", 1883);client->setClientId("clientId");client->setUsername("user");client->setPassword("password");client->connect();qmqtt是MQTT的Qt客户端开发包。
示例代码:
#include "qmqtt.h"QMQTT::Client *client = new QMQTT::Client("localhost", 1883);client->setClientId("clientId");client->setUsername("user");client->setPassword("password");client->connect();
评论