Skip to content

Commit e5a3efc

Browse files
committed
Dispatcher: Add getTotalOutboundCount()
This adds a method getTotalOutboundCount() to the Dispatcher class to return the number of queued outbound packets. Signed-off-by: Frieder Schrempf <frieder@fris.de>
1 parent 0c90b28 commit e5a3efc

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/Dispatcher.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,9 @@ class Dispatcher {
167167
Packet* obtainNewPacket();
168168
void releasePacket(Packet* packet);
169169
void sendPacket(Packet* packet, uint8_t priority, uint32_t delay_millis=0);
170+
uint32_t getTotalOutboundCount() {
171+
return _mgr->getOutboundCount(0xFFFFFFFF);
172+
}
170173

171174
unsigned long getTotalAirTime() const { return total_air_time; } // in milliseconds
172175
unsigned long getReceiveAirTime() const {return rx_air_time; }

0 commit comments

Comments
 (0)