[問題] ble get service不完全
想請問一下... 不知道有沒有人遇過抓取ble device的services的時後,
有時候會抓不完整的狀況,但還是會進入onServiceDiscovered().
用Log印出如下: (1)抓取完整時:
Connected to GATT server.
Attempting to start service discovery:true
Service UUID Found: 00001801-0000-1000-8000-00805f9b34fb
Service UUID Found: 00001800-0000-1000-8000-00805f9b34fb
Service UUID Found: 0000180f-0000-1000-8000-00805f9b34fb
Service UUID Found: 0000fd00-0000-1000-8000-00805f9b34fb
Service UUID Found: 0000fa00-0000-1000-8000-00805f9b34fb
Service UUID Found: 0000fc00-0000-1000-8000-00805f9b34fb
Service UUID Found: 0000fb00-0000-1000-8000-00805f9b34fb
(2)抓取不完整時:(少抓到fb00這個service)
Connected to GATT server.
Attempting to start service discovery:true
Service UUID Found: 00001801-0000-1000-8000-00805f9b34fb
Service UUID Found: 00001800-0000-1000-8000-00805f9b34fb
Service UUID Found: 0000180f-0000-1000-8000-00805f9b34fb
Service UUID Found: 0000fd00-0000-1000-8000-00805f9b34fb
Service UUID Found: 0000fa00-0000-1000-8000-00805f9b34fb
Service UUID Found: 0000fc00-0000-1000-8000-00805f9b34fb
不知道是哪裡出了問題? 請板上神人解答..
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 118.163.2.234
※ 文章網址: https://www.ptt.cc/bbs/AndroidDev/M.1498032635.A.EBE.html
→
06/21 17:46, , 1F
06/21 17:46, 1F
→
06/23 10:10, , 2F
06/23 10:10, 2F
→
06/23 10:11, , 3F
06/23 10:11, 3F
→
06/25 23:34, , 4F
06/25 23:34, 4F
→
06/27 19:02, , 5F
06/27 19:02, 5F
AndroidDev 近期熱門文章
PTT數位生活區 即時熱門文章