Hello,
I have a BLE peripheral device that becomes the server once a connection is established. The BLE services and characteristics are all custom, I will include the defines below as a reference. What I am having a problem with is the data sent when a read characteristic is done by the connected client. Where is this data retrieved from on the peripheral/server side? Basically, where is the local database storage on the peripheral that is referenced by the connected client?
I was assuming I could just load the correct data in the buffer during a specified read callback, but that doesn't seem to be working correctly.
Below are the services and characteristics being used, the one I have a problem currently using is: BT_UUID_MOBILE_APP_GENERIC_UTILITY which has both BT_GATT_CHRC_READ and BT_GATT_CHRC_WRITE_WITHOUT_RESP characteristic capabilities.