# 蓝牙 **Repository Path**: xmqian/bluetooth ## Basic Information - **Project Name**: 蓝牙 - **Description**: 蓝牙功能使用测试 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 2 - **Forks**: 0 - **Created**: 2023-02-13 - **Last Updated**: 2023-04-24 ## Categories & Tags **Categories**: Uncategorized **Tags**: 功能测试, 硬件开发 ## README #蓝牙功能 ## 资料 #### Android上BLE功能的逐步演进 低功耗蓝牙扫描,仅支持扫描低功耗蓝牙,扫描不到经典蓝牙 - 安卓4.3开始支持BLE功能(仅支持中心模式,客户端模式) - 安卓5.0开始支持(外设模式,服务端模式) 权限申请 - android.permission.BLUETOOTH - android.permission.BLUETOOTH_ADMIN - android.permission.ACCESS_FINE_LOCATION" -(如果您的应用针对 Android 9或更低,您可以改为声明 ACCESS_COARSE_LOCATION) ### common > 蓝牙功能的基础库,比如开关蓝牙,获取蓝牙状态等 ### socket > 蓝牙socket通信功能 ### bluetooth-socket-termial > 可发送指令的蓝牙socket通信 > ### bluetooth-ble > 低功耗蓝牙 与 经典蓝牙协议不兼容,但代码兼容 > 依赖BleLib库进行运行 > 脱离原生的安卓蓝牙调用模式 > [依赖库地址](https://github.com/Jasonchenlijian/FastBle) >[源码解析文档](https://www.jianshu.com/p/795bb0a08beb) ## 参考Demo及文章链接记录 - [检查指定蓝牙是否已连接](http://www.voidcn.com/article/p-qsglswwn-bvz.html)