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:
parent
5551b4cfad
commit
6f2ebb963a
4 changed files with 25 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue