FastBle icon indicating copy to clipboard operation
FastBle copied to clipboard

write no response 为什么还会收到write回调?

Open anduin1024 opened this issue 2 years ago • 3 comments

特征值setWriteType noResponse,根据蓝牙协议栈定义,理论上没有写入成功与否响应,但是write回调接口还是会调用,不是很理解问题出在哪里?

anduin1024 avatar Aug 25 '22 14:08 anduin1024

我也一直有这个疑问,write_no_response 和write的区别体现不出来啊

philadelphia avatar Apr 26 '23 02:04 philadelphia

我解决了 https://github.com/Jasonchenlijian/FastBle/issues/574

wangjinchan avatar Jun 16 '23 01:06 wangjinchan

write no response的时候,产生的回调只是说明这一次写操作已经处理完了(不确定是host发到controller,还是controller发出去了,大概率是前者)。如果有大量数据要写,可以用这个来控制发送的节奏

fateice avatar Aug 25 '23 08:08 fateice