Bluetooth: GATT: Make bt_gatt_notify length parameter uint16_t
This is consistent with the rest of the API since the attribute length can be at most 512 bytes long. Change-Id: Ia2e60cf8dadcb93d0d091cda5be1b80de98fae94 Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
This commit is contained in:
parent
870e466338
commit
7540844891
2 changed files with 2 additions and 2 deletions
|
@ -611,7 +611,7 @@ int bt_gatt_attr_read_cep(struct bt_conn *conn,
|
|||
* @param value Attribute value.
|
||||
* @param len Attribute value length.
|
||||
*/
|
||||
void bt_gatt_notify(uint16_t handle, const void *data, size_t len);
|
||||
void bt_gatt_notify(uint16_t handle, const void *data, uint16_t len);
|
||||
|
||||
/** @brief connected callback.
|
||||
*
|
||||
|
|
|
@ -363,7 +363,7 @@ static uint8_t notify_cb(const struct bt_gatt_attr *attr, void *user_data)
|
|||
return BT_GATT_ITER_CONTINUE;
|
||||
}
|
||||
|
||||
void bt_gatt_notify(uint16_t handle, const void *data, size_t len)
|
||||
void bt_gatt_notify(uint16_t handle, const void *data, uint16_t len)
|
||||
{
|
||||
struct notify_data nfy;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue