Version 1.0

This commit is contained in:
2020-07-19 14:47:55 +02:00
parent 67300f1c10
commit 17d440e1e2
8 changed files with 28 additions and 291 deletions

View File

@@ -1,10 +1,19 @@
#include "spdlog/spdlog.h"
#include "MQTT.h"
#include "mqttpp.h"
#include <iostream>
#include <thread>
#include <cstring>
#include "Version.h"
int main(int argc, const char* argv[]) {
MQTT mqtt("tcp://chimaera:1883");
if (argc >= 2) {
if (strcmp(argv[1], "-v") == 0 || strcmp(argv[1], "--version")) {
std::cout << "Version: " << MQTTEXPLORER_VERSION_MAJOR << "." << MQTTEXPLORER_VERSION_MINOR << "." << MQTTEXPLORER_VERSION_PATCH << std::endl;
return 0;
}
}
mqttpp::Client mqtt("tcp://chimaera:1883");
spdlog::info("Establishing mqtt connection to {} on port {}", "chimaera", "1883");