作者gn00618777 (非常念旧)
看板Bluetooth
标题[问题] 关於 callback 的 onCharacteristicRead
时间Sun Jan 8 09:40:58 2017
版友好
最近工作需要渐渐对BLE满有兴趣的
也修改了 nordic uart APK v2.0
看到了一段实作 gattCallBack 类别并 override
onCharacteristicRead
onCharacteristicWrite
onCharacteristicChanged
这三个,想请问如果我要写入或读取 Characteristic 值,会回呼上面两个
那...下面会被呼叫吗??? 字面意思是当characteristc发生改变,我做读取和写入
characteristic,最後被呼叫上面两个function,第三个也会被呼叫吗?
感觉 onCharacteristicChanged 是专门於 notification 用的,而非 read 和 write
谢谢指教
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 58.115.110.28
※ 文章网址: https://webptt.com/cn.aspx?n=bbs/Bluetooth/M.1483839662.A.677.html
※ 编辑: gn00618777 (58.115.110.28), 01/08/2017 10:27:09
※ 编辑: gn00618777 (58.115.110.28), 01/08/2017 21:37:56