Bluetooth: Mesh: Add proxy test API

Adds internal proxy API to enhance testabillity of
the proxy implementation.

Signed-off-by: Anders Storrø <anders.storro@nordicsemi.no>
This commit is contained in:
Anders Storrø 2023-10-11 16:19:57 +02:00 committed by Carles Cufí
commit 6f2ebb963a
4 changed files with 25 additions and 0 deletions

View file

@ -1157,3 +1157,16 @@ BT_CONN_CB_DEFINE(conn_callbacks) = {
.connected = gatt_connected,
.disconnected = gatt_disconnected,
};
uint8_t bt_mesh_proxy_srv_connected_cnt(void)
{
uint8_t cnt = 0;
for (int i = 0; i < ARRAY_SIZE(clients); i++) {
if (clients[i].cli) {
cnt++;
}
}
return cnt;
}