This repository has been archived on 2024-10-30. You can view files and clone it, but cannot push or open issues or pull requests.
SDi-STOMP/main.cpp

24 lines
558 B
C++
Raw Normal View History

2023-11-23 08:19:32 +00:00
#include <QApplication>
2023-11-29 10:53:20 +00:00
#include <QSslSocket>
2023-12-06 11:00:27 +00:00
#include <QThread>
2023-11-29 10:53:20 +00:00
#include "stompframe.h"
2023-12-06 11:00:27 +00:00
#include "stomp.h"
2023-11-23 08:19:32 +00:00
int main(int argc, char *argv[]) {
QApplication application(argc, argv);
2023-11-29 10:53:20 +00:00
2023-12-06 11:00:27 +00:00
Stomp st;
st.connectRequest("sdi.hevs.ch", 61614, "/", "sdi10", "809c02f36becb0868da98761fe3209f6");
2023-11-29 10:53:20 +00:00
2023-12-06 11:00:27 +00:00
st.sendRequest("/topic/sdi10.gem.command", "right");
2023-11-29 10:53:20 +00:00
2023-12-06 11:00:27 +00:00
st.sendRequest("/topic/sdi10.gem.command", "up");
2023-11-29 10:53:20 +00:00
2023-12-06 11:00:27 +00:00
st.sendRequest("/topic/sdi10.gem.command", "left");
2023-11-29 10:53:20 +00:00
2023-12-06 11:00:27 +00:00
st.sendRequest("/topic/sdi10.gem.command", "down");
2023-11-29 10:53:20 +00:00
2023-11-23 08:19:32 +00:00
return application.exec();
}