Bluetooth: Add infrastructure to handle multiple identities
Make it possible to have multiple identity addresses as an LE peripheral. For central role only the default identity is supported for now. This also extends the flash storage in a backward compatible way. Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
This commit is contained in:
parent
6b8af4f0b2
commit
5708f1e8b1
22 changed files with 340 additions and 168 deletions
|
@ -479,11 +479,13 @@ ssize_t bt_gatt_attr_read_chrc(struct bt_conn *conn,
|
|||
#define BT_GATT_CCC_MAX (CONFIG_BT_MAX_PAIRED + CONFIG_BT_MAX_CONN)
|
||||
|
||||
/** @brief GATT CCC configuration entry.
|
||||
* @param id Local identity, BT_ID_DEFAULT in most cases.
|
||||
* @param peer Remote peer address
|
||||
* @param value Configuration value.
|
||||
* @param data Configuration pointer data.
|
||||
*/
|
||||
struct bt_gatt_ccc_cfg {
|
||||
u8_t id;
|
||||
bt_addr_le_t peer;
|
||||
u16_t value;
|
||||
u8_t data[4] __aligned(4);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue