This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

通过uuid读属性数值和通过handle读属性数值有什么不同



在程序中把字节长度和返回的字节长度设为20,就是例子中中的特性5(FFF5)

在btool中用read characteristic value/desciptor读,可以完整的读到20个字节的数据。

但是用read using characteristic UUID却返回的是错误代码:

ErrorCode : 0x0A (ATTR_NOT_FOUND)
: No Attribute Found Within The Given
Attribute Handle Range

只要把字节数改成19,两个都可以读到完整的19字节数据,请问这是怎么回事?