mirror of
https://github.com/thooge/esp32-nmea2000-obp60.git
synced 2025-12-16 07:23:07 +01:00
add status to Api
This commit is contained in:
@@ -208,3 +208,12 @@ bool GwChannel::isOwnSource(int id){
|
||||
if (maxSourceId < 0) return id == sourceId;
|
||||
else return (id >= sourceId && id <= maxSourceId);
|
||||
}
|
||||
|
||||
unsigned long GwChannel::countRx(){
|
||||
if (! countIn) return 0UL;
|
||||
return countIn->getGlobal();
|
||||
}
|
||||
unsigned long GwChannel::countTx(){
|
||||
if (! countOut) return 0UL;
|
||||
return countOut->getGlobal();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user