diff --git a/src/emsesp.cpp b/src/emsesp.cpp index a1c69ac4a..49c2d289e 100644 --- a/src/emsesp.cpp +++ b/src/emsesp.cpp @@ -1016,13 +1016,14 @@ void EMSESP::process_version(std::shared_ptr telegram) { // some devices store the protocol type (HT3, Buderus) in the last byte uint8_t brand; if (telegram->message_length >= 10) { - brand = EMSdevice::decode_brand(telegram->message_data[9]); // TODO should be offset + 9? + brand = EMSdevice::decode_brand(telegram->message_data[9]); } else { brand = EMSdevice::Brand::NO_BRAND; // unknown } // add it - will be overwritten if device already exists (void)add_device(device_id, product_id, version, brand); + // request the deviceName from telegram 0x01 send_read_request(EMSdevice::EMS_TYPE_NAME, device_id, 27); }