Version 1.0
This commit is contained in:
13
src/main.cpp
13
src/main.cpp
@@ -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");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user