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