Skip to content

Commit

Permalink
toonWater 1.1.22
Browse files Browse the repository at this point in the history
1.1.22
- workaround for ESP 1.4.38 error for older versions
  • Loading branch information
oepi-loepi committed Feb 7, 2023
1 parent 470e80f commit d356257
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 7 deletions.
5 changes: 4 additions & 1 deletion Changelog.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
1.1.22
- workaround for ESP 1.4.38 error for older versions


1.1.21
- workaround for ESP 1.4.38 error


1.1.20
- Version tracking of ESP

Expand Down
14 changes: 9 additions & 5 deletions ToonWaterApp.qml
Original file line number Diff line number Diff line change
Expand Up @@ -191,11 +191,15 @@ App {
// add an extra \" because of a firmware error

if (debugOutput) console.log("*********Water http.responseText.indexOf : " + http.responseText.indexOf('ength\":\"'))
if(http.responseText.indexOf('ength\":\"') == -1){
var n1 = http.responseText.indexOf('ength":') + 'engt\":'.length +1
var newString = http.responseText.substring(0, n1) + "\"" + http.responseText.substring(n1, http.responseText.length)
JsonString = newString;
if (debugOutput) console.log("*********Water JsonString: " + JsonString)


if(http.responseText.indexOf('pulselength') > 0){
if(http.responseText.indexOf('ength\":\"') == -1){
var n1 = http.responseText.indexOf('ength":') + 'engt\":'.length +1
var newString = http.responseText.substring(0, n1) + "\"" + http.responseText.substring(n1, http.responseText.length)
JsonString = newString;
if (debugOutput) console.log("*********Water JsonString: " + JsonString)
}
}

var JsonObject= JSON.parse(JsonString)
Expand Down
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
1.1.21
1.1.22


0 comments on commit d356257

Please sign in to comment.