Skip to main content

Gatt database

5 years ago

Gatt database

Posted bygayan_gamage0 points 1 reply
0 upvotes

- 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

5 years ago

Gongyu_Dialog -15 points

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.