From 5e7bed1063a5cc542f26267f08cbfc60dee30e7a Mon Sep 17 00:00:00 2001 From: MichaelDvP <59284019+MichaelDvP@users.noreply.github.com> Date: Sat, 15 May 2021 18:27:09 +0200 Subject: [PATCH] fix #68, add hc as prefix to web cmd --- src/emsdevice.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/emsdevice.cpp b/src/emsdevice.cpp index 208514f58..6c9ed9d6e 100644 --- a/src/emsdevice.cpp +++ b/src/emsdevice.cpp @@ -656,7 +656,11 @@ bool EMSdevice::generate_values_json_web(JsonObject & json) { // add the name of the Command function if it exists 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 { data.add(""); }