Rename display MQTT endpoints.

This commit is contained in:
Jonathan Naylor
2023-07-25 16:20:23 +01:00
parent d8c72278c4
commit 1a19243653
2 changed files with 3 additions and 3 deletions

View File

@@ -356,7 +356,7 @@ int CMMDVMHost::run()
::LogInitialise(m_conf.getLogDisplayLevel(), m_conf.getLogMQTTLevel()); ::LogInitialise(m_conf.getLogDisplayLevel(), m_conf.getLogMQTTLevel());
std::vector<std::pair<std::string, void (*)(const unsigned char*, unsigned int)>> subscriptions; std::vector<std::pair<std::string, void (*)(const unsigned char*, unsigned int)>> subscriptions;
subscriptions.push_back(std::make_pair("display", CMMDVMHost::onDisplay)); subscriptions.push_back(std::make_pair("display-in", CMMDVMHost::onDisplay));
if (m_conf.getRemoteControlEnabled()) if (m_conf.getRemoteControlEnabled())
subscriptions.push_back(std::make_pair("command", CMMDVMHost::onCommand)); subscriptions.push_back(std::make_pair("command", CMMDVMHost::onCommand));
@@ -1350,7 +1350,7 @@ int CMMDVMHost::run()
len = m_modem->readSerialData(data); len = m_modem->readSerialData(data);
if (len > 0U) if (len > 0U)
m_mqtt->publish("display", data, len); m_mqtt->publish("display-out", data, len);
unsigned int ms = stopWatch.elapsed(); unsigned int ms = stopWatch.elapsed();
stopWatch.start(); stopWatch.start();

View File

@@ -19,6 +19,6 @@
#if !defined(VERSION_H) #if !defined(VERSION_H)
#define VERSION_H #define VERSION_H
const char* VERSION = "20230723"; const char* VERSION = "20230725";
#endif #endif