Use a random id for MQTT and change the order of some startup messages.

This commit is contained in:
Jonathan Naylor
2025-03-12 13:25:26 +00:00
parent 886c999e64
commit 088a62789f
2 changed files with 6 additions and 9 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2022,2023 by Jonathan Naylor G4KLX
* Copyright (C) 2022,2023,2025 by Jonathan Naylor G4KLX
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -51,7 +51,7 @@ CMQTTConnection::~CMQTTConnection()
bool CMQTTConnection::open()
{
m_mosq = ::mosquitto_new(m_name.c_str(), true, this);
m_mosq = ::mosquitto_new(NULL, true, this);
if (m_mosq == NULL) {
::fprintf(stderr, "MQTT Error newing: Out of memory.\n");
return false;