Skip to content
Commit e6b73b08 authored by Mariusz Skamra's avatar Mariusz Skamra Committed by Anas Nashif
Browse files

Bluetooth: gatt: Update bt_gatt_is_subscribed documentation



This updates the documentation of bt_gatt_is_subscribed function that
can take a bitfield of BT_GATT_CCC_NOTIFY and BT_GATT_CCC_INDICATE.
This might be useful if one wants to test if peer is subscribed, but
does not matter which method was used.

The gatt.c implementation handles API usage already, because it performs
bitwise AND:
if (bt_conn_is_peer_addr_le(conn, cfg->id, &cfg->peer) &&
    (ccc_value & ccc->cfg[i].value)) {
	return true;
}

Signed-off-by: default avatarMariusz Skamra <mariusz.skamra@codecoup.pl>
parent 6913da9d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment