minor changes (debug levels, api endpoints)

This commit is contained in:
lumapu 2022-09-14 22:08:08 +02:00
parent 4c5a9cb37f
commit 445423209d
2 changed files with 7 additions and 3 deletions

View file

@ -265,7 +265,7 @@ class Inverter {
}
}
else if (rec->assign == InfoAssignment) {
DPRINTLN(DBG_INFO, "add info");
DPRINTLN(DBG_DEBUG, "add info");
// get at least the firmware version and save it to the inverter object
if (getPosByChFld(0, FLD_FW_VERSION, rec) == pos){
fwVersion = rec->record[pos];
@ -273,7 +273,7 @@ class Inverter {
}
}
else if (rec->assign == SystemConfigParaAssignment) {
DPRINTLN(DBG_INFO, "add config");
DPRINTLN(DBG_DEBUG, "add config");
// get at least the firmware version and save it to the inverter object
if (getPosByChFld(0, FLD_ACT_PWR_LIMIT, rec) == pos){
actPowerLimit = rec->record[pos];
@ -281,7 +281,7 @@ class Inverter {
}
}
else if (rec->assign == AlarmDataAssignment) {
DPRINTLN(DBG_INFO, "add alarm");
DPRINTLN(DBG_DEBUG, "add alarm");
if (getPosByChFld(0, FLD_LAST_ALARM_CODE, rec) == pos){
lastAlarmMsg = getAlarmStr(rec->record[pos]);
}

View file

@ -108,6 +108,10 @@ void webApi::getNotFound(JsonObject obj, String url) {
ep[F("index")] = url + F("index");
ep[F("setup")] = url + F("setup");
ep[F("live")] = url + F("live");
ep[F("record/info")] = url + F("record/info");
ep[F("record/alarm")] = url + F("record/alarm");
ep[F("record/config")] = url + F("record/config");
ep[F("record/live")] = url + F("record/live");
}