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:
@@ -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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user