Client Commands
www.ti.com
128
SWRU271H–October 2010–Revised April 2019
Submit Documentation Feedback
Copyright © 2010–2019, Texas Instruments Incorporated
GATT/ATT API
bStatus_t GATT_WriteNoRsp (uint16 connHandle, attWriteReq_t *pReq)
Used to request the server to write or cancel the write of all the prepared values
currently held in the prepare queue from this client.
Parameters connHandle: connection to use
pReq: pointer to command to be sent
Notes No response will be sent to the calling application task for this sub-procedure. If the
Characteristic Value write request is the wrong size or has an invalid value as defined by
the profile, the write fails and the server generates no error.
bStatus_t GATT_SignedWriteNoRsp (uint16 connHandle, attWriteReq_t *pReq)
Used to write a Characteristic Value to a server when the client knows the
Characteristic Value Handle and the ATT Bearer is not encrypted. This sub-
procedure shall only be used if the Characteristic Properties authenticated bit is
enabled and the client and server device share a bond as defined in the GAP.
Parameters connHandle: connection to use
pReq: pointer to command to be sent
Notes No response is sent to the calling application task for this sub-procedure. If the
authenticated Characteristic Value is the wrong size or has an invalid value as defined
by the profile or the signed value fails to authenticate the client, the write fails and no
error is generated by the server.
bStatus_t GATT_WriteCharValue ( uint16 connHandle, attWriteReq_t *pReq, uint8 taskId )
Used to write a characteristic value to a server when the client knows the
characteristic value handle.
Parameters connHandle: connection to use
pReq: pointer to request to be sent
taskId: task to be notified of response
Notes If the return status from this function is SUCCESS, the calling application task receives
an OSAL GATT_MSG_EVENT message with type ATT_WRITE_RSP or
ATT_ERROR_RSP (if an error occurred on the server). This sub-procedure is complete
when either ATT_WRITE_RSP (with SUCCESS or bleTimeout status) or the calling
application task receives the ATT_ERROR_RSP (with SUCCESS status).