From 7a67e0c67e6e321868535721628110a7b395c62b Mon Sep 17 00:00:00 2001 From: DanielR92 <DanielR92@users.noreply.github.com> Date: Thu, 3 Nov 2022 20:50:12 +0100 Subject: [PATCH 1/2] Update readme to mqtt --- tools/esp8266/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/esp8266/README.md b/tools/esp8266/README.md index 18f00c17..a8978fbb 100644 --- a/tools/esp8266/README.md +++ b/tools/esp8266/README.md @@ -234,7 +234,7 @@ When everything is wired up and the firmware is flashed, it is time to connect t ## MQTT command to set the DTU without webinterface -[Read here](tools/esp8266/User_Manual.md) +[Read here](User_Manual.md) ## Used Libraries From e50c6c899136c1838fbce2bc05f81c2358fa8742 Mon Sep 17 00:00:00 2001 From: DanielR92 <DanielR92@users.noreply.github.com> Date: Fri, 4 Nov 2022 12:50:26 +0100 Subject: [PATCH 2/2] wrong value name (not defined) --- tools/esp8266/html/serial.html | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/tools/esp8266/html/serial.html b/tools/esp8266/html/serial.html index 07b74802..5c83e2a4 100644 --- a/tools/esp8266/html/serial.html +++ b/tools/esp8266/html/serial.html @@ -178,7 +178,7 @@ break; default: obj.cmd = 2; - } + } obj.inverter = get_selected_iv(); obj.tx_request = 81; @@ -188,15 +188,16 @@ document.getElementById("sendpwrlim").addEventListener("click", function() { var val = parseInt(document.getElementsByName('pwrlimval')[0].value); var ctrl = parseInt(document.getElementsByName('pwrlimcntrl')[0].value); - - if((ctrl == 1 || ctrl == 257) && unit < 2) unit = 2; - if(isNaN(val) || isNaN(ctrl)) + + if((ctrl == 1 || ctrl == 257) && val < 2) val = 2; + + if(isNaN(val) || isNaN(ctrl)) { var tmp = (isNaN(val)) ? "Value" : "Unit"; document.getElementById("result").textContent = tmp + " is missing"; return; } - + var obj = new Object(); obj.inverter = get_selected_iv(); obj.cmd = 11;