mirror of
https://github.com/Mercantec-GHC/h5-projekt-mst.git
synced 2026-08-26 21:27:38 +02:00
log hostname and port
This commit is contained in:
parent
bdbc7315e8
commit
5188ecba00
@ -144,6 +144,7 @@ Client::Client(const std::string& hostname,
|
||||
mosquitto_subscribe_callback_set(inst, callbacks::subscribe);
|
||||
mosquitto_unsubscribe_callback_set(inst, callbacks::unsubscribe);
|
||||
|
||||
std::println("[MQTT] Connecting to {}:{}", hostname, port);
|
||||
if (auto status = mosquitto_connect(inst, hostname.c_str(), port, 5);
|
||||
status != MOSQ_ERR_SUCCESS) {
|
||||
if (status == MOSQ_ERR_ERRNO) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user