mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 00:09:51 +03:00
fix #68, add hc as prefix to web cmd
This commit is contained in:
@@ -656,7 +656,11 @@ bool EMSdevice::generate_values_json_web(JsonObject & json) {
|
|||||||
|
|
||||||
// add the name of the Command function if it exists
|
// add the name of the Command function if it exists
|
||||||
if (dv.has_cmd) {
|
if (dv.has_cmd) {
|
||||||
data.add(dv.short_name);
|
if (dv.tag >= DeviceValueTAG::TAG_HC1) {
|
||||||
|
data.add(tag_to_string(dv.tag) + "/" + uuid::read_flash_string(dv.short_name));
|
||||||
|
} else {
|
||||||
|
data.add(dv.short_name);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
data.add("");
|
data.add("");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user