mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-08 00:39:50 +03:00
comments
This commit is contained in:
@@ -1438,13 +1438,13 @@ void EMSdevice::dump_devicevalue_info() {
|
||||
Serial.print(",");
|
||||
|
||||
// modbus specific infos
|
||||
Serial.print(device_type());
|
||||
Serial.print(device_type()); // modbus unit identifier
|
||||
Serial.print(',');
|
||||
|
||||
Serial.print(dv.tag);
|
||||
Serial.print(dv.tag); // modbus block
|
||||
Serial.print(',');
|
||||
|
||||
// numeric operator -> scale factor
|
||||
// numeric operator -> modbus scale factor
|
||||
if (dv.numeric_operator == 0)
|
||||
Serial.print("1");
|
||||
else if (dv.numeric_operator > 0)
|
||||
@@ -1453,10 +1453,10 @@ void EMSdevice::dump_devicevalue_info() {
|
||||
Serial.print(-dv.numeric_operator);
|
||||
Serial.print(",");
|
||||
|
||||
Serial.printf("%d", EMSESP::modbus_->getRegisterOffset(dv));
|
||||
Serial.printf("%d", EMSESP::modbus_->getRegisterOffset(dv)); // modbus offset
|
||||
Serial.print(",");
|
||||
|
||||
Serial.printf("%d", EMSESP::modbus_->getRegisterCount(dv));
|
||||
Serial.printf("%d", EMSESP::modbus_->getRegisterCount(dv)); // modbus count
|
||||
|
||||
// /modbus specific infos
|
||||
|
||||
|
||||
@@ -78,7 +78,7 @@ class DeviceValue {
|
||||
CONNECTIVITY // 27 - used in HA
|
||||
};
|
||||
|
||||
// TAG mapping - maps to DeviceValueTAG_s in emsdevice.cpp
|
||||
// TAG mapping - maps to DeviceValueTAG_s in emsdevicevalue.cpp
|
||||
enum DeviceValueTAG : int8_t {
|
||||
TAG_NONE = -1, // wild card
|
||||
TAG_DEVICE_DATA = 0,
|
||||
|
||||
@@ -231,7 +231,7 @@ MAKE_NOTRANSLATION(tpl_input4, "<inv>[<comp><aux><cool><heat><dhw><pv>]")
|
||||
MAKE_NOTRANSLATION(test_cmd, "run a test")
|
||||
#endif
|
||||
|
||||
// TAG mapping - maps to DeviceValueTAG_s in emsdevice.cpp
|
||||
// TAG mapping - maps to DeviceValueTAG_s in emsdevicevalue.cpp
|
||||
// use empty string if want to suppress showing tags
|
||||
// mqtt tags must not have spaces
|
||||
MAKE_NOTRANSLATION(tag_none, "")
|
||||
|
||||
Reference in New Issue
Block a user