-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
1,268 additions
and
146 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,80 +1,88 @@ | ||
#------------------------------------------------- | ||
# | ||
# Project created by QtCreator 2017-12-24T16:50:07 | ||
# | ||
#------------------------------------------------- | ||
|
||
QT += core gui network | ||
|
||
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets | ||
|
||
TARGET = MQTTCute | ||
TEMPLATE = app | ||
|
||
|
||
SOURCES += main.cpp\ | ||
mainwindow.cpp \ | ||
mqttlistener.cpp \ | ||
topicwindow.cpp \ | ||
discoverywindow.cpp | ||
|
||
win32-g++ { | ||
SOURCES += mosquitto/lib/cpp/mosquittopp.cpp \ | ||
mosquitto/lib/logging_mosq.c \ | ||
mosquitto/lib/memory_mosq.c \ | ||
mosquitto/lib/messages_mosq.c \ | ||
mosquitto/lib/mosquitto.c \ | ||
mosquitto/lib/net_mosq.c \ | ||
mosquitto/lib/read_handle.c \ | ||
mosquitto/lib/read_handle_client.c \ | ||
mosquitto/lib/read_handle_shared.c \ | ||
mosquitto/lib/send_client_mosq.c \ | ||
mosquitto/lib/send_mosq.c \ | ||
mosquitto/lib/socks_mosq.c \ | ||
mosquitto/lib/srv_mosq.c \ | ||
mosquitto/lib/thread_mosq.c \ | ||
mosquitto/lib/time_mosq.c \ | ||
mosquitto/lib/tls_mosq.c \ | ||
mosquitto/lib/util_mosq.c \ | ||
mosquitto/lib/will_mosq.c | ||
} | ||
|
||
HEADERS += mainwindow.h \ | ||
mqttlistener.h \ | ||
topicwindow.h \ | ||
discoverywindow.h | ||
|
||
win32-g++ { | ||
HEADERS += mosquitto/lib/cpp/mosquittopp.h \ | ||
mosquitto/lib/dummypthread.h \ | ||
mosquitto/lib/logging_mosq.h \ | ||
mosquitto/lib/memory_mosq.h \ | ||
mosquitto/lib/messages_mosq.h \ | ||
mosquitto/lib/mosquitto.h \ | ||
mosquitto/lib/mosquitto_internal.h \ | ||
mosquitto/lib/mqtt3_protocol.h \ | ||
mosquitto/lib/net_mosq.h \ | ||
mosquitto/lib/read_handle.h \ | ||
mosquitto/lib/send_mosq.h \ | ||
mosquitto/lib/socks_mosq.h \ | ||
mosquitto/lib/time_mosq.h \ | ||
mosquitto/lib/tls_mosq.h \ | ||
mosquitto/lib/util_mosq.h \ | ||
mosquitto/lib/will_mosq.h | ||
} | ||
|
||
FORMS += mainwindow.ui \ | ||
topicwindow.ui \ | ||
discoverywindow.ui | ||
|
||
!win32 { | ||
LIBS += -lmosquitto -lmosquittopp | ||
} | ||
|
||
win32:CONFIG(release, debug|release): LIBS += -lws2_32 | ||
win32:CONFIG(debug, debug|release): LIBS += -lws2_32 | ||
win32-msvc:CONFIG(release, debug|release): LIBS += -L$$PWD/mosquitto/msvc_2017_x64/ | ||
win32-msvc:CONFIG(debug, debug|release): LIBS += -L$$PWD/mosquitto/msvc_2017_x64/ | ||
|
||
#INCLUDEPATH += $$PWD/mosquitto | ||
#DEPENDPATH += $$PWD/mosquitto | ||
#------------------------------------------------- | ||
# | ||
# Project created by QtCreator 2017-12-24T16:50:07 | ||
# | ||
#------------------------------------------------- | ||
|
||
QT += core gui network | ||
|
||
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets | ||
|
||
TARGET = MQTTCute | ||
TEMPLATE = app | ||
|
||
|
||
SOURCES += main.cpp\ | ||
mainwindow.cpp \ | ||
mqttlistener.cpp \ | ||
topicwindow.cpp \ | ||
discoverywindow.cpp \ | ||
sessiondialog.cpp \ | ||
settingsdialog.cpp | ||
|
||
win32-g++ { | ||
SOURCES += mosquitto/lib/cpp/mosquittopp.cpp \ | ||
mosquitto/lib/logging_mosq.c \ | ||
mosquitto/lib/memory_mosq.c \ | ||
mosquitto/lib/messages_mosq.c \ | ||
mosquitto/lib/mosquitto.c \ | ||
mosquitto/lib/net_mosq.c \ | ||
mosquitto/lib/read_handle.c \ | ||
mosquitto/lib/read_handle_client.c \ | ||
mosquitto/lib/read_handle_shared.c \ | ||
mosquitto/lib/send_client_mosq.c \ | ||
mosquitto/lib/send_mosq.c \ | ||
mosquitto/lib/socks_mosq.c \ | ||
mosquitto/lib/srv_mosq.c \ | ||
mosquitto/lib/thread_mosq.c \ | ||
mosquitto/lib/time_mosq.c \ | ||
mosquitto/lib/tls_mosq.c \ | ||
mosquitto/lib/util_mosq.c \ | ||
mosquitto/lib/will_mosq.c | ||
} | ||
|
||
HEADERS += mainwindow.h \ | ||
mqttlistener.h \ | ||
topicwindow.h \ | ||
discoverywindow.h \ | ||
sessiondialog.h \ | ||
settingsdialog.h | ||
|
||
win32-g++ { | ||
HEADERS += mosquitto/lib/cpp/mosquittopp.h \ | ||
mosquitto/lib/dummypthread.h \ | ||
mosquitto/lib/logging_mosq.h \ | ||
mosquitto/lib/memory_mosq.h \ | ||
mosquitto/lib/messages_mosq.h \ | ||
mosquitto/lib/mosquitto.h \ | ||
mosquitto/lib/mosquitto_internal.h \ | ||
mosquitto/lib/mqtt3_protocol.h \ | ||
mosquitto/lib/net_mosq.h \ | ||
mosquitto/lib/read_handle.h \ | ||
mosquitto/lib/send_mosq.h \ | ||
mosquitto/lib/socks_mosq.h \ | ||
mosquitto/lib/time_mosq.h \ | ||
mosquitto/lib/tls_mosq.h \ | ||
mosquitto/lib/util_mosq.h \ | ||
mosquitto/lib/will_mosq.h | ||
} | ||
|
||
FORMS += mainwindow.ui \ | ||
topicwindow.ui \ | ||
discoverywindow.ui \ | ||
sessiondialog.ui \ | ||
settingsdialog.ui | ||
|
||
!win32 { | ||
LIBS += -lmosquitto -lmosquittopp | ||
} | ||
|
||
win32:CONFIG(release, debug|release): LIBS += -lws2_32 | ||
win32:CONFIG(debug, debug|release): LIBS += -lws2_32 | ||
win32-msvc:CONFIG(release, debug|release): LIBS += -L$$PWD/mosquitto/msvc_2017_x64/ | ||
win32-msvc:CONFIG(debug, debug|release): LIBS += -L$$PWD/mosquitto/msvc_2017_x64/ | ||
|
||
RESOURCES += \ | ||
images.qrc | ||
|
||
win32:RC_ICONS += img/mqtticon-large.png |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
MQTTCute | ||
Session file format | ||
--- | ||
|
||
uint8 (8) MQTTCUTE | ||
uint8 (6) SESSION | ||
uint32 Bytes following this field. | ||
uint8 Length of MQTT broker address string. | ||
uint8 (*) MQTT broker address string. | ||
uint16 MQTT broker port. | ||
uint8 Login type: 0: Anonymous, 1: Password, 2: Certificate. | ||
<login data> | ||
<open topics> | ||
|
||
|
||
> Login data: | ||
|
||
* Anonymous: | ||
No further data. | ||
|
||
* Password: | ||
uint8 Length of username string. | ||
uint8 (*) Username string. | ||
uint8 Length of password string. | ||
uint8 (*) Password string. | ||
|
||
* Certificate: | ||
uint16 Length of CA file string. | ||
uint8 (*) CA file string (path). | ||
uint16 Length of Cert file string. | ||
uint8 (*) Cert file string (path). | ||
uint16 Length of Key file string. | ||
uint8 (*) Key file string (path). | ||
|
||
|
||
> Open topics: | ||
|
||
uint8 (5) TOPIC | ||
uint8 Type of window (0: topic, 1: discovery). | ||
uint16 Length of topic string. | ||
uint8 (*) Topic string. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<RCC> | ||
<qresource prefix="/img"> | ||
<file>img/mqtticon-large.png</file> | ||
</qresource> | ||
</RCC> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.