TI BLE Stack API Documentation  2.03.06
Functions
Client and Server Common API Functions

Functions

void GATT_RegisterForMsgs (uint8 taskID)
 Register your task ID to receive GATT local events and ATT Response messages pending for transmission. When the GATT Server fails to respond to an incoming ATT Request due to lack of HCI Tx buffers, the response will be forwarded the app for retransmission. More...
 
bStatus_t GATT_NotifyEvent (uint16 connHandle, uint8 status, uint8 method, gattMsg_t *pMsg)
 Send an event to upper layer application/protocol. More...
 
void GATT_UpdateMTU (uint16 connHandle, uint16 mtuSize)
 Update ATT_MTU size for a given connection. More...
 

Detailed Description

Function Documentation

§ GATT_NotifyEvent()

bStatus_t GATT_NotifyEvent ( uint16  connHandle,
uint8  status,
uint8  method,
gattMsg_t pMsg 
)

Send an event to upper layer application/protocol.

Parameters
connHandle- connection event belongs to
status- status
method- type of message
pMsg- pointer to message to be sent
Returns
SUCCESS, INVALIDPARAMETER or bleMemAllocError

§ GATT_RegisterForMsgs()

void GATT_RegisterForMsgs ( uint8  taskID)

Register your task ID to receive GATT local events and ATT Response messages pending for transmission. When the GATT Server fails to respond to an incoming ATT Request due to lack of HCI Tx buffers, the response will be forwarded the app for retransmission.

Note: A pending ATT Response message forwarded to the app should be transmitted using GATT_SendRsp(), or its payload freed using GATT_bm_free() if not transmitted.

Parameters
taskID- Default task ID to send GATT events/pending ATT responses.
Returns
none

§ GATT_UpdateMTU()

void GATT_UpdateMTU ( uint16  connHandle,
uint16  mtuSize 
)

Update ATT_MTU size for a given connection.

Parameters
connHandle- connection handle.
mtuSize- new MTU size.
Returns
none.