2 posts / 0 new
Last post
gayan_gamage
Offline
Last seen:4 years 9 months ago
Joined:2016-04-28 21:23
Gatt database

- Is there a possibility to pass a read call after (connecting to a ble device) to the main application code (before sending from gatt) . so the application code will send the reply, instead of gatt. I have seen this in another dev environment (There was a attrib called user instead of read and write)

- Same with the write function. All of the reading and writing should be handled by the application instead of the GATT. I have to do some sanity checking before writing to the gatt

Device:
Gongyu_Dialog
Offline
Last seen:4 days 17 hours ago
Joined:2016-04-27 07:07
Regarding the write procedure

Regarding the write procedure, you can do the sanity checking work in the function "gattc_write_cmd_ind_handler".
The function is the handler to process the msg "GATTC_WRITE_CMD_IND" , which is transferred from the att layer.

Regarding the read procedure, difficult to add the the customer code, since the msg is already processed by the atts layer.