mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 15:59:52 +03:00
boiler Errormessage 0xBF to trigger 0xC2 reading
This commit is contained in:
@@ -48,6 +48,7 @@ Boiler::Boiler(uint8_t device_type, int8_t device_id, uint8_t product_id, const
|
|||||||
|
|
||||||
// the telegram handlers...
|
// the telegram handlers...
|
||||||
// common for all boilers
|
// common for all boilers
|
||||||
|
register_telegram_type(0xBF, F("ErrorMessage"), false, MAKE_PF_CB(process_ErrorMessage));
|
||||||
register_telegram_type(0x10, F("UBAErrorMessage1"), false, MAKE_PF_CB(process_UBAErrorMessage));
|
register_telegram_type(0x10, F("UBAErrorMessage1"), false, MAKE_PF_CB(process_UBAErrorMessage));
|
||||||
register_telegram_type(0x11, F("UBAErrorMessage2"), false, MAKE_PF_CB(process_UBAErrorMessage));
|
register_telegram_type(0x11, F("UBAErrorMessage2"), false, MAKE_PF_CB(process_UBAErrorMessage));
|
||||||
register_telegram_type(0xC2, F("UBAErrorMessage3"), false, MAKE_PF_CB(process_UBAErrorMessage2));
|
register_telegram_type(0xC2, F("UBAErrorMessage3"), false, MAKE_PF_CB(process_UBAErrorMessage2));
|
||||||
@@ -872,6 +873,11 @@ void Boiler::process_UBAMaintenanceStatus(std::shared_ptr<const Telegram> telegr
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 0xBF
|
||||||
|
void Boiler::process_ErrorMessage(std::shared_ptr<const Telegram> telegram) {
|
||||||
|
EMSESP::send_read_request(0xC2, device_id()); // read last errorcode
|
||||||
|
}
|
||||||
|
|
||||||
// 0x10, 0x11
|
// 0x10, 0x11
|
||||||
void Boiler::process_UBAErrorMessage(std::shared_ptr<const Telegram> telegram) {
|
void Boiler::process_UBAErrorMessage(std::shared_ptr<const Telegram> telegram) {
|
||||||
if (telegram->offset > 0 || telegram->message_length < 11) {
|
if (telegram->offset > 0 || telegram->message_length < 11) {
|
||||||
|
|||||||
@@ -210,6 +210,7 @@ class Boiler : public EMSdevice {
|
|||||||
void process_MC110Status(std::shared_ptr<const Telegram> telegram);
|
void process_MC110Status(std::shared_ptr<const Telegram> telegram);
|
||||||
void process_UBAMaintenanceStatus(std::shared_ptr<const Telegram> telegram);
|
void process_UBAMaintenanceStatus(std::shared_ptr<const Telegram> telegram);
|
||||||
void process_UBAMaintenanceData(std::shared_ptr<const Telegram> telegram);
|
void process_UBAMaintenanceData(std::shared_ptr<const Telegram> telegram);
|
||||||
|
void process_ErrorMessage(std::shared_ptr<const Telegram> telegram);
|
||||||
void process_UBAErrorMessage(std::shared_ptr<const Telegram> telegram);
|
void process_UBAErrorMessage(std::shared_ptr<const Telegram> telegram);
|
||||||
void process_UBAErrorMessage2(std::shared_ptr<const Telegram> telegram);
|
void process_UBAErrorMessage2(std::shared_ptr<const Telegram> telegram);
|
||||||
void process_UBAMonitorWWPlus(std::shared_ptr<const Telegram> telegram);
|
void process_UBAMonitorWWPlus(std::shared_ptr<const Telegram> telegram);
|
||||||
|
|||||||
Reference in New Issue
Block a user