From 78870d4108eda48cc01548c1f369969b1f27fb00 Mon Sep 17 00:00:00 2001 From: Roland Jax Date: Fri, 28 Feb 2025 17:02:44 +0100 Subject: [PATCH] output for "Identification (07h 04h)" removed --- src/schedule.cpp | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/src/schedule.cpp b/src/schedule.cpp index a2569d4..9cc46fe 100644 --- a/src/schedule.cpp +++ b/src/schedule.cpp @@ -281,22 +281,8 @@ void Schedule::processPassive(const std::vector &master, void Schedule::publishSend(const std::vector &master, const std::vector &slave) { - std::string topic = "ebus/"; - std::string payload; - if (master[2] == 0x07 && master[3] == 0x04) { - topic += "nodes/" + ebus::Sequence::to_string(master[1]); - payload += "MF="; - payload += ebus::Sequence::to_string(ebus::Sequence::range(slave, 1, 1)); - payload += ";ID="; - payload += ebus::byte_2_string(ebus::Sequence::range(slave, 2, 5)); - payload += ";SW="; - payload += ebus::Sequence::to_string(ebus::Sequence::range(slave, 7, 2)); - payload += ";HW="; - payload += ebus::Sequence::to_string(ebus::Sequence::range(slave, 9, 2)); - } else { - topic += "sent/" + ebus::Sequence::to_string(master); - payload = ebus::Sequence::to_string(slave); - } + std::string topic = "ebus/sent/" + ebus::Sequence::to_string(master); + std::string payload = ebus::Sequence::to_string(slave); mqttClient.publish(topic.c_str(), 0, true, payload.c_str()); }