diff --git a/src/ble/Connection.hxx b/src/ble/Connection.hxx index 1890114fc..397fa7b8f 100644 --- a/src/ble/Connection.hxx +++ b/src/ble/Connection.hxx @@ -198,6 +198,13 @@ public: return nullptr; } + /// Get the number of active connections being tracked by this object. + /// @return number of active connections + size_t get_active_count() + { + return connections_.size(); + } + private: /// All the connections managed by the container. std::vector connections_;