* add support for newest generation of inverters with A-F in their serial number
This commit is contained in:
lumapu 2024-03-22 22:38:08 +01:00
parent a0e32bb06c
commit 99cfdb5324
2 changed files with 2 additions and 2 deletions

View file

@ -332,7 +332,7 @@ class RestApi {
if(-1 != i) {
i+=5;
String sn = tmp.substring(i, tmp.indexOf("\"", i)-1);
tmp.replace(sn, String(atoll(sn.c_str()), HEX));
tmp.replace(sn, String(sn) + ",\"note\":\"" + String(atoll(sn.c_str()), HEX) + "\"");
}
}
response = request->beginResponse(200, F("application/json; charset=utf-8"), tmp);