Bluetooth ATT Profile
- group BT_ATT
Provide BT ATT profile interfaces.
Typedefs
-
typedef enum t_bt_att_msg_type T_BT_ATT_MSG_TYPE
BT ATT message type.
-
typedef struct t_bt_att_conn_cmpl T_BT_ATT_CONN_CMPL
BT ATT connection completed.
-
typedef struct t_bt_att_data_ind T_BT_ATT_DATA_IND
BT ATT data indication.
-
typedef void (*P_BT_ATT_CBACK)(uint8_t bd_addr[6], T_BT_ATT_MSG_TYPE msg_type, void *msg)
ATT message callback definition.
- Param bd_addr:
[in] Remote BT address.
- Param msg_type:
[in] ATT message type.
- Param p_msg:
[in] Message buffer address.
Enums
Functions
-
bool bt_att_init(P_BT_ATT_CBACK cback)
Initialize ATT profile.
- Parameters:
cback – [in] Callback function used to handle ATT message.
- Return values:
true – ATT profile was initialized successfully.
false – ATT profile was failed to initialize.
- Returns:
The status of initializing ATT profile.
-
bool bt_att_connect_req(uint8_t bd_addr[6])
Send an ATT connection request.
- Parameters:
bd_addr – [in] Remote BT address.
- Return values:
true – ATT connection request was sent successfully.
false – ATT connection request was failed to send.
- Returns:
The status of sending the ATT connection request.
-
bool bt_att_disconnect_req(uint8_t bd_addr[6])
Send an ATT disconnection request.
- Parameters:
bd_addr – [in] Remote BT address.
- Return values:
true – ATT disconnection request was sent successfully.
false – ATT disconnection request was failed to send.
- Returns:
The status of sending the ATT disconnection request.
-
struct t_bt_att_conn_cmpl
BT ATT connection completed.
-
struct t_bt_att_data_ind
BT ATT data indication.
-
typedef enum t_bt_att_msg_type T_BT_ATT_MSG_TYPE