能够正常收发的串口透传demo程序,将char1、char2的UUID由16位改为128位后,用lightblue连接查看正常,但在char1(write)写入数据,从机模块收不到数据
用BTool工具,Discovery char by UUID读到08 25 00 ......,通过handle 0x0025 写入却不允许
可能是什么原因呢?还有什么地方没注意到?
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.
能够正常收发的串口透传demo程序,将char1、char2的UUID由16位改为128位后,用lightblue连接查看正常,但在char1(write)写入数据,从机模块收不到数据
用BTool工具,Discovery char by UUID读到08 25 00 ......,通过handle 0x0025 写入却不允许
可能是什么原因呢?还有什么地方没注意到?
读跟写的回调函数都要修改哦
static bStatus_t simpleProfile_WriteAttrCB( uint16 connHandle, gattAttribute_t *pAttr,
uint8 *pValue, uint8 len, uint16 offset )
解决了收发问题,thanks
另外请教下,demo程序中 uint32 passkey = 0; // passkey "000000",这个是初始化配对密码:“000000”吗?
Dear Guohua zhang:
可否提供16位uuid改成128位uuid参考代码,非常感谢!
附上这2个文件:simpleGATTprofile.c,simpleGATTprofile.h
用lightblue测试收发正常