English
Language : 

UM1755 Datasheet, PDF (91/123 Pages) STMicroelectronics – The purpose of this document is to describe the design of the application
UM1755
Vendor specific commands
4.5.30 Aci_Gatt_Write_Long_Charac_Val
Table 202. Aci_Gatt_Write_Long_Charac_Val
Command name
Parameters
Aci_Gatt_Write_Long_Charac_Val (0xFD1D)
Connection handle
AttrHandle
ValOffset
ValLen
AttrVal
Return
Status
Description:
Start the procedure to write a long characteristic value.
Table 203. Aci_Gatt_Write_Long_Charac_Val command parameters
Parameter
Size
Description
Connection handle 2 bytes
Connection handle for which the command is given
AttrHandle
2 bytes
Handle of the attribute to be written
ValOffset
2 bytes
Offset at which the attribute has to be written
ValLen
1 byte
Length of the value to be written
AttrVal
0-N bytes Value to be written
Table 204. Aci_Gatt_Write_Long_Charac_Val return parameters
Parameter
Size
Description
Status
1 byte
0x00: Success
0x42: Invalid parameters
0x46: Not allowed
- If the exchange has already taken place
- If GATT is expecting response for previous request
- Already a request is in the queue to be sent
- Channel not open
- Already one GATT procedure is started
Event(s) generated:
A command status event is generated on the receipt of the command. When the procedure
is completed, a Evt_Blue_Gatt_Procedure_Cmplt event is generated. Before procedure
completion the response packets are given through Evt_Blue_Att_Prepare_Write_Resp and
Evt_Blue_Att_Exec_Write_Resp events.
DocID026257 Rev 2
91/123
123