Browse Source

minor changes (debug levels, api endpoints)

pull/283/head
lumapu 2 years ago
parent
commit
445423209d
  1. 6
      tools/esp8266/hmInverter.h
  2. 4
      tools/esp8266/webApi.cpp

6
tools/esp8266/hmInverter.h

@ -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]);
}

4
tools/esp8266/webApi.cpp

@ -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");
}

Loading…
Cancel
Save