BluetoothDemo
BluetoothDemo copied to clipboard
BluetoothDemo
说明
- 自定义 Service 对蓝牙的操作进行封装
- 使用 BluetoothAdapter.startDiscovery(); 方法进行设备扫描
- 使用 BluetoothGatt 进行蓝牙连接
- BluetoothGattCallback 对数据进行回调处理
- 该demo只需知道蓝牙设备的命令,就可以向蓝牙设备发送指令,不需要了解通道是什么。
沟通方式
- 蓝牙交流 QQ 群:177694195