return full mqtt topic subscription, including servicekey

This commit is contained in:
proddy
2020-08-13 10:29:32 +02:00
parent 6826d1a4c7
commit 1c5d5d2dde

View File

@@ -58,24 +58,28 @@ std::string EMSdevice::brand_to_string() const {
// returns the name of the MQTT topic to use for a specific device // returns the name of the MQTT topic to use for a specific device
std::string EMSdevice::device_type_topic_name(const uint8_t device_type) { std::string EMSdevice::device_type_topic_name(const uint8_t device_type) {
switch (device_type) { switch (device_type) {
case DeviceType::SERVICEKEY:
return read_flash_string(F("system_cmd"));
break;
case DeviceType::BOILER: case DeviceType::BOILER:
return read_flash_string(F("boiler")); return read_flash_string(F("boiler_cmd"));
break; break;
case DeviceType::THERMOSTAT: case DeviceType::THERMOSTAT:
return read_flash_string(F("thermostat")); return read_flash_string(F("thermostat_cmd"));
break; break;
case DeviceType::HEATPUMP: case DeviceType::HEATPUMP:
return read_flash_string(F("heatpump")); return read_flash_string(F("heatpump_cmd"));
break; break;
case DeviceType::SOLAR: case DeviceType::SOLAR:
return read_flash_string(F("solar")); return read_flash_string(F("solar_cmd"));
break; break;
case DeviceType::MIXING: case DeviceType::MIXING:
return read_flash_string(F("mixing")); return read_flash_string(F("mixing_cmd"));
break; break;
default: default: