mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-04-16 17:42:51 +00:00
att: remove l2cap_cid from ATT_EVENT_CONNECTED
This commit is contained in:
parent
a43588bafe
commit
5d964c8b44
@ -754,11 +754,10 @@ typedef uint8_t sm_key_t[16];
|
||||
#define GATT_EVENT_CAN_WRITE_WITHOUT_RESPONSE 0xAC
|
||||
|
||||
/**
|
||||
* @format 1BH2
|
||||
* @format 1BH
|
||||
* @param address_type
|
||||
* @param address
|
||||
* @param handle
|
||||
* @param l2cap_cid if BR/EDR bearer
|
||||
*/
|
||||
#define ATT_EVENT_CONNECTED 0xB3
|
||||
|
||||
|
@ -2233,15 +2233,6 @@ static inline void att_event_connected_get_address(const uint8_t * event, bd_add
|
||||
static inline hci_con_handle_t att_event_connected_get_handle(const uint8_t * event){
|
||||
return little_endian_read_16(event, 9);
|
||||
}
|
||||
/**
|
||||
* @brief Get field l2cap_cid from event ATT_EVENT_CONNECTED
|
||||
* @param event packet
|
||||
* @return l2cap_cid
|
||||
* @note: btstack_type 2
|
||||
*/
|
||||
static inline uint16_t att_event_connected_get_l2cap_cid(const uint8_t * event){
|
||||
return little_endian_read_16(event, 11);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Get field handle from event ATT_EVENT_DISCONNECTED
|
||||
|
Loading…
x
Reference in New Issue
Block a user