[問題] 關於 callback 的 onCharacteristicRead

看板Bluetooth (藍芽)作者 (非常念舊)時間8年前 (2017/01/08 09:41), 8年前編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
版友好 最近工作需要漸漸對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://www.ptt.cc/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
文章代碼(AID): #1OSPYkPt (Bluetooth)
文章代碼(AID): #1OSPYkPt (Bluetooth)