最近打算做點小東西,使用到了安卓的藍牙通信(BLE),百度各種例子也看得不是很明白,使用請教下各位老哥
目前已經獲取到BluetoothGatt,然后通過BluetoothGatt獲取BluetoothGattService時,發現getServices()方法能獲取到多個service,任何判定該用哪一個呢?
繼續往下獲取BluetoothGattCharacteristic,發現一個service中也有多個BluetoothGattCharacteristic,應該使用哪一個呢?應該如何判斷哪個才是讀寫資料用的呢?
轉載請註明出處,本文鏈接:https://www.uj5u.com/yidong/237790.html
標籤:Android
上一篇:目前安卓APP開發趨勢
下一篇:Android sqlite 空表 select count(*) cursor.getCount總回傳1,請問為什么?
