One of the most basic client operations is to read a characteristic of a service. The typical RW practice appears to be look up the structure that defines the read action, look for the response structure to that action, and configure the necessary tables in the task of interest to define the callback that will be called when the response structure is generated. At least that works with the Device Information Service since the response to the DISC_CHAR_RD_REQ is defined to be DISC_CHAR_RD_RSP. However, in the battery service which defines a BASC_RD_CHAR_REQ struct for the read operation, the only response structs defined are error conditions. The normal response has been forgotten in the documentation and I have not been able to successfully guess what it might be. I have tried BASC_RD_CHAR_RSP but no such line exists in the SDK.
Does anyone know what the response structure is for reading the battery level characteristic? Note this is a direct read, not receiving the information by notification (which one cannot rely on since one does not know when the peripheral will send such a notification.
Hi Brian,
Can't find the Macro you listed here. can you please inform what software you are using?
Regards!
PY