1
0
mirror of https://github.com/thooge/esp32-nmea2000-obp60.git synced 2025-12-16 07:23:07 +01:00

also send counters for disabled channels in status

This commit is contained in:
wellenvogel
2022-01-03 19:23:38 +01:00
parent 2a56adf3c5
commit ad45dd6036
2 changed files with 6 additions and 2 deletions

View File

@@ -181,6 +181,10 @@ void GwChannelList::toJson(GwJsonDocument &doc){
doc["clientCon"]=client->isConnected();
doc["clientErr"]=client->getError();
}
else{
doc["clientCon"]=false;
doc["clientErr"]="disabled";
}
allChannels([&](GwChannel *c){
c->toJson(doc);
});