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:
Luiz Augusto von Dentz 2015-07-28 16:10:27 +03:00 committed by Anas Nashif
commit 7540844891
2 changed files with 2 additions and 2 deletions

View file

@ -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.
*

View file

@ -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;