【发布时间】:2015-02-11 12:25:24
【问题描述】:
在此之后,我可以从我的 android 应用程序扫描 ble 设备,我想将数据发送到该扫描设备。怎么做?如果有人有,请分享我的示例代码。
我提到在这里回答了一些人问同样的问题 [Working with BLE Android 4.3 how to write characteristics?
但没有低于代码段
BluetoothGattService Service = mBluetoothGatt.getService(your Services);
Here what is `your seervice`
BluetoothGattCharacteristic charac = Service
.getCharacteristic(your characteristic);
Here what is `your characteristic`
请解释一下上面的代码
谢谢
【问题讨论】:
-
您是否尝试过来自 github 的可用示例?如果还没有,请通过 gihub,它将为您提供大量示例!
-
谢谢你的回复,你能分享我的链接@JiteshUpadhyay