emqx/qmqtt là dự án mã nguồn mở trên GitHub, viết chủ yếu bằng C++, với 754 sao. MQTT client for Qt
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
Please compile the library with Qt >= 5.3 version. On Windows you need to specify CONFIG += NO_UNIT_TESTS, since gtest is not supported.
SSL is enabled by default, if the version of OpenSSL < 1.0.2, SSL may not be supported.
Disable the SSL in CMakeLists.txt (cmake):
option( ${PROJECT_NAME}_SSL "Enable SSL support for MQTT" OFF )
Disable the SSL with src/mqtt/qmqtt.pro (qmake):
CONFIG += QMQTT_NO_SSL
To add websocket support, compile the library with Qt >= 5.7, and specify 'CONFIG += QMQTT_WEBSOCKETS'.
This also works when compiling qmqtt for WebAssembly.
QSslConfiguration sslConfig = QSslConfiguration::defaultConfiguration();
// Add custom SSL options here (for example extra certificates)
QMQTT::Client *client = new QMQTT::Client("example.com", 8883, sslConfig);
client->setClientId("clientId");
client->setUsername("user");
client->setPassword("password");
// Optionally, set ssl errors you want to ignore. Be careful, because this may weaken security.
// See QSslSocket::ignoreSslErrors(const QList<QSslError> &) for more information.
client->ignoreSslErrors(<list of expected ssl errors>)
client->connectToHost();
// Here's another option to suppress SSL errors (again, be careful)
QObject::connect(client, &QMQTT::Client::sslErrors, [&](const QList<QSslError> &errors) {
// Investigate the errors here, if you find no serious problems, call ignoreSslErrors()
// to continue connecting.
client->ignoreSslErrors();
});
This library has been developed and tested against Qt 5. Active work on it has stopped since Qt released its own mqtt module several years ago. There are currently no plans for further extensions except for smaller rectifications and bug fixing. At your own risk you may use it in Qt6 projects using cmake.
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/emqx/qmqtt là nguồn chính thức.
emqx/qmqtt có bao nhiêu sao?
emqx/qmqtt có 754 sao GitHub — tải lại trang để xem số mới nhất, hoặc xem trực tiếp github.com/emqx/qmqtt. TopGit phản chiếu số sao của GitHub nhưng không cam kết đến từng phút.
emqx/qmqtt có những chủ đề gì?
GitHub topics của emqx/qmqtt: "emqx", "mqtt", "mqtt-client", "qmqtt", "qt". TopGit xếp repo vào nhóm mã nguồn mở.
emqx/qmqtt còn đang phát triển không?
Commit gần nhất trên emqx/qmqtt là 2 tháng trước (theo timestamp GitHub). Repo có 345 fork — một chỉ báo về mức độ quan tâm của cộng đồng.
emqx/qmqtt viết bằng ngôn ngữ gì?
emqx/qmqtt chủ yếu viết bằng C++. Trường "language" của GitHub dựa trên phần lớn byte ở nhánh mặc định.
Đọc đầy đủ README ở tab phía trên.
Vẫn đang phân vân về qmqtt?
Một cú bấm sẽ gửi câu hỏi kèm trang này cho AI — xem AI nói gì về qmqtt.