Skip to content

Commit db39975

Browse files
committed
Fixed mqtt.
1 parent c07725a commit db39975

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sources/network/mqtt.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ constexpr auto CONNECT_TIMEOUT = std::chrono::seconds(5);
1212
constexpr auto KEEP_ALIVE = std::chrono::seconds(60);
1313

1414
Mqtt::Mqtt(const Config& config)
15-
: m_config(config), m_client(config.mqttUrl(), "sdr-scanner"), m_isRunning(true), m_thread([this, config]() {
15+
: m_config(config), m_client(config.mqttUrl(), fmt::format("sdr-scanner-{}", config.getId())), m_isRunning(true), m_thread([this, config]() {
1616
Logger::info(LABEL, "started");
1717
connect();
1818
while (m_isRunning) {

0 commit comments

Comments
 (0)