电池服务客户端documents no response to read characteristic

2 posts / 0 new
Last post
brian
Offline
Last seen:6 years 1 month ago
Expert Master
加入:2014-10-16 18:10
电池服务客户端documents no response to read characteristic

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.

PY_Dialog
Offline
Last seen:2 years 9 months ago
Staff
加入:2014-08-25 09:59
Hi Brian,

Hi Brian,

Can't find the Macro you listed here. can you please inform what software you are using?

Regards!
PY