Browse Source

ha: topic is always the same

pull/2561/head
Maxim Prokhorov 1 year ago
parent
commit
0d8be5af99
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      code/espurna/homeassistant.cpp

+ 2
- 1
code/espurna/homeassistant.cpp View File

@ -599,8 +599,9 @@ bool heartbeat(heartbeat::Mask mask) {
String message;
root.printTo(message);
static const auto topic = StringView(Topic).toString();
mqttSendRaw(
mqttTopic(Topic).c_str(),
mqttTopic(topic).c_str(),
message.c_str(), false);
}


Loading…
Cancel
Save