Comments (2)
问硬件开发要
from android-lite-bluetoothle.
能否动态获取呢,我调式的时候发现这个BluetoothUtil类的方法printServices在链接成功之后,public static void printServices(BluetoothGatt gatt)
{
if (gatt != null)
{
for (BluetoothGattService service : gatt.getServices())
{
BleLog.i(TAG, "service: " + service.getUuid());
for (BluetoothGattCharacteristic characteristic : service.getCharacteristics())
{
BleLog.d(TAG, "characteristic: " + characteristic.getUuid() + " value: " + Arrays.toString(characteristic.getValue()));
for (BluetoothGattDescriptor descriptor : characteristic.getDescriptors())
{
BleLog.v(TAG, "descriptor: " + descriptor.getUuid() + " value: " + Arrays.toString(descriptor.getValue()));
}
}
}
}
}可以获取到service.getUuid()和 characteristic.getUuid(),这个是不是呢?
from android-lite-bluetoothle.
Related Issues (16)
- 希望可以看到一个基于该框架的通用例子 HOT 1
- 请教几个蓝牙开发遇到的问题
- Gatt Exception Occurred HOT 2
- 您好,我想请教您关于接收蓝牙设备发送的数据问题
- 写数据的时候,会成功很多次 HOT 2
- 蓝牙首次连接,连上,但是接收不到数据
- CallBacks executing multiple times
- 小米手机写入数据 报错 101
- 你好,有示例么 HOT 2
- 作者可否提供一个Demo例子呢?感觉无从下手…… HOT 1
- Timeout callbacks are always called HOT 1
- onCharacteristicRead never called HOT 1
- 您好,请教两个小问题。 HOT 2
- 关于 BLUETOOTH_PRIVILEGED权限问题 HOT 1
- Demo Error HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from android-lite-bluetoothle.