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.

[参考译文] CC2540:CC2540

Guru**** 2513185 points


请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/wireless-connectivity/bluetooth-group/bluetooth/f/bluetooth-forum/717443/cc2540-cc2540

器件型号:CC2540

你好  

我尝试写入13字节长的特征  

我得到了   

04:13:06.591
ATT 命令失败
命令= ATT_PrepareWriteReq
句柄= 0x0026
错误= Invaild 值。  

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    您好、Ibrahim、

    您实际上是在尝试写入具有19个字节的字符、即十六进制0x13。 调用 GATT_writeLongCharValue 时、请确保输入十六进制值。 尝试同样的方法、值0x0D 为13。
  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    我的意思是值长度为13字节、而不是数据长度