Functions

ATT Server API Functions

Functions

bStatus_t ATT_ErrorRsp (uint16 connHandle, attErrorRsp_t *pRsp)
 Send Error Response.
bStatus_t ATT_ExchangeMTURsp (uint16 connHandle, attExchangeMTURsp_t *pRsp)
 Send Exchange MTU Response.
bStatus_t ATT_FindInfoRsp (uint16 connHandle, attFindInfoRsp_t *pRsp)
 Send Find Information Response.
bStatus_t ATT_FindByTypeValueRsp (uint16 connHandle, attFindByTypeValueRsp_t *pRsp)
 Send Find By Tyep Value Response.
bStatus_t ATT_ReadByTypeRsp (uint16 connHandle, attReadByTypeRsp_t *pRsp)
 Send Read By Type Respond.
bStatus_t ATT_ReadRsp (uint16 connHandle, attReadRsp_t *pRsp)
 Send Read Response.
bStatus_t ATT_ReadBlobRsp (uint16 connHandle, attReadBlobRsp_t *pRsp)
 Send Read Blob Response.
bStatus_t ATT_ReadMultiRsp (uint16 connHandle, attReadMultiRsp_t *pRsp)
 Send Read Multiple Response.
bStatus_t ATT_ReadByGrpTypeRsp (uint16 connHandle, attReadByGrpTypeRsp_t *pRsp)
 Send Read By Group Type Respond.
bStatus_t ATT_WriteRsp (uint16 connHandle)
 Send Write Response.
bStatus_t ATT_PrepareWriteRsp (uint16 connHandle, attPrepareWriteRsp_t *pRsp)
 Send Prepare Write Response.
bStatus_t ATT_ExecuteWriteRsp (uint16 connHandle)
 Send Execute Write Response.
bStatus_t ATT_HandleValueNoti (uint16 connHandle, attHandleValueNoti_t *pNoti)
 Send Handle Value Notification.
bStatus_t ATT_HandleValueInd (uint16 connHandle, attHandleValueInd_t *pInd)
 Send Handle Value Indication.

Function Documentation

bStatus_t ATT_ErrorRsp ( uint16  connHandle,
attErrorRsp_t pRsp 
)

Send Error Response.

Parameters:
connHandle - connection to use
pRsp - pointer to error response to be sent
Returns:
SUCCESS: Response was sent successfully.
INVALIDPARAMETER: Invalid response field.
MSG_BUFFER_NOT_AVAIL: No HCI buffer is available.
bleNotConnected: Connection is down.
bleMemAllocError: Memory allocation error occurred.
bStatus_t ATT_ExchangeMTURsp ( uint16  connHandle,
attExchangeMTURsp_t pRsp 
)

Send Exchange MTU Response.

Parameters:
connHandle - connection to use
pRsp - pointer to request to be sent
Returns:
SUCCESS: Response was sent successfully.
INVALIDPARAMETER: Invalid response field.
MSG_BUFFER_NOT_AVAIL: No HCI buffer is available.
bleNotConnected: Connection is down.
bleMemAllocError: Memory allocation error occurred.
bStatus_t ATT_ExecuteWriteRsp ( uint16  connHandle  ) 

Send Execute Write Response.

Parameters:
connHandle - connection to use
Returns:
SUCCESS: Response was sent successfully.
INVALIDPARAMETER: Invalid response field.
MSG_BUFFER_NOT_AVAIL: No HCI buffer is available.
bleNotConnected: Connection is down.
bleMemAllocError: Memory allocation error occurred.
bStatus_t ATT_FindByTypeValueRsp ( uint16  connHandle,
attFindByTypeValueRsp_t pRsp 
)

Send Find By Tyep Value Response.

Parameters:
connHandle - connection to use
pRsp - pointer to response to be sent
Returns:
SUCCESS: Response was sent successfully.
INVALIDPARAMETER: Invalid response field.
MSG_BUFFER_NOT_AVAIL: No HCI buffer is available.
bleNotConnected: Connection is down.
bleMemAllocError: Memory allocation error occurred.
bStatus_t ATT_FindInfoRsp ( uint16  connHandle,
attFindInfoRsp_t pRsp 
)

Send Find Information Response.

Parameters:
connHandle - connection to use
pRsp - pointer to response to be sent
Returns:
SUCCESS: Response was sent successfully.
INVALIDPARAMETER: Invalid response field.
MSG_BUFFER_NOT_AVAIL: No HCI buffer is available.
bleNotConnected: Connection is down.
bleMemAllocError: Memory allocation error occurred.
bStatus_t ATT_HandleValueInd ( uint16  connHandle,
attHandleValueInd_t pInd 
)

Send Handle Value Indication.

Parameters:
connHandle - connection to use
pInd - pointer to indication to be sent
Returns:
SUCCESS: Indication was sent successfully.
INVALIDPARAMETER: Invalid indication field.
MSG_BUFFER_NOT_AVAIL: No HCI buffer is available.
bleNotConnected: Connection is down.
bleMemAllocError: Memory allocation error occurred.
bStatus_t ATT_HandleValueNoti ( uint16  connHandle,
attHandleValueNoti_t pNoti 
)

Send Handle Value Notification.

Parameters:
connHandle - connection to use
pNoti - pointer to notification to be sent
Returns:
SUCCESS: Notification was sent successfully.
INVALIDPARAMETER: Invalid notification field.
MSG_BUFFER_NOT_AVAIL: No HCI buffer is available.
bleNotConnected: Connection is down.
bleMemAllocError: Memory allocation error occurred.
bStatus_t ATT_PrepareWriteRsp ( uint16  connHandle,
attPrepareWriteRsp_t pRsp 
)

Send Prepare Write Response.

Parameters:
connHandle - connection to use
pRsp - pointer to response to be sent
Returns:
SUCCESS: Response was sent successfully.
INVALIDPARAMETER: Invalid response field.
MSG_BUFFER_NOT_AVAIL: No HCI buffer is available.
bleNotConnected: Connection is down.
bleMemAllocError: Memory allocation error occurred.
bStatus_t ATT_ReadBlobRsp ( uint16  connHandle,
attReadBlobRsp_t pRsp 
)

Send Read Blob Response.

Parameters:
connHandle - connection to use
pRsp - pointer to response to be sent
Returns:
SUCCESS: Response was sent successfully.
INVALIDPARAMETER: Invalid response field.
MSG_BUFFER_NOT_AVAIL: No HCI buffer is available.
bleNotConnected: Connection is down.
bleMemAllocError: Memory allocation error occurred.
bStatus_t ATT_ReadByGrpTypeRsp ( uint16  connHandle,
attReadByGrpTypeRsp_t pRsp 
)

Send Read By Group Type Respond.

Parameters:
connHandle - connection to use
pRsp - pointer to response to be sent
Returns:
SUCCESS: Response was sent successfully.
INVALIDPARAMETER: Invalid response field.
MSG_BUFFER_NOT_AVAIL: No HCI buffer is available.
bleNotConnected: Connection is down.
bleMemAllocError: Memory allocation error occurred.
bStatus_t ATT_ReadByTypeRsp ( uint16  connHandle,
attReadByTypeRsp_t pRsp 
)

Send Read By Type Respond.

Parameters:
connHandle - connection to use
pRsp - pointer to response to be sent
Returns:
SUCCESS: Response was sent successfully.
INVALIDPARAMETER: Invalid response field.
MSG_BUFFER_NOT_AVAIL: No HCI buffer is available.
bleNotConnected: Connection is down.
bleMemAllocError: Memory allocation error occurred.
bStatus_t ATT_ReadMultiRsp ( uint16  connHandle,
attReadMultiRsp_t pRsp 
)

Send Read Multiple Response.

Parameters:
connHandle - connection to use
pRsp - pointer to response to be sent
Returns:
SUCCESS: Response was sent successfully.
INVALIDPARAMETER: Invalid response field.
MSG_BUFFER_NOT_AVAIL: No HCI buffer is available.
bleNotConnected: Connection is down.
bleMemAllocError: Memory allocation error occurred.
bStatus_t ATT_ReadRsp ( uint16  connHandle,
attReadRsp_t pRsp 
)

Send Read Response.

Parameters:
connHandle - connection to use
pRsp - pointer to response to be sent
Returns:
SUCCESS: Response was sent successfully.
INVALIDPARAMETER: Invalid response field.
MSG_BUFFER_NOT_AVAIL: No HCI buffer is available.
bleNotConnected: Connection is down.
bleMemAllocError: Memory allocation error occurred.
bStatus_t ATT_WriteRsp ( uint16  connHandle  ) 

Send Write Response.

Parameters:
connHandle - connection to use
Returns:
SUCCESS: Response was sent successfully.
INVALIDPARAMETER: Invalid response field.
MSG_BUFFER_NOT_AVAIL: No HCI buffer is available.
bleNotConnected: Connection is down.
bleMemAllocError: Memory allocation error occurred.