初步了解Android 蓝牙4.0

Provides classes that manage Bluetooth functionality, such as scanning for devices, connecting with devices, and managing data transfer between devices. The Bluetooth API supports both "Classic Bluetooth" and Bluetooth Low Energy.

有关更多的经典蓝牙信息,,可以看Bluetooth指南。有关更多的低功耗蓝牙的信息,可以看BLE指南。

For more information about Classic Bluetooth, see theguide. For more information about Bluetooth Low Energy, see the(BLE) guide.

Bluetooth APIs 可以使得应用具备以下功能:

1.对于其他的蓝牙设备的扫描(包括BLE设备)

2.为配对的蓝牙设备查询本地蓝牙适配器

3.建立RFCOMM channels/sockets.

4.连接在其它设备上指定的sockets

5.与其它设备之间传输数据

6.与BLE设备交流,例如接近传感器,心率监视器,健身设备,等等

7.作为GATT客户端或GATT服务端

使用这些APIs来完成蓝牙之间的交流,一个应用程序必须声明权限。对于一些额外的功能,如请求设备发现,也需要权限。

提示:不是所有的Android设备都提供了Bluetooth功能。

The Bluetooth APIs let applications:

To perform Bluetooth communication using these APIs, an application must declare thepermission. Some additional functionality, such as requesting device discovery, also requires thepermission.

Note:Not all Android-powered devices provide Bluetooth functionality.

时间慢慢的流淌,人生有风雨阳光,

初步了解Android 蓝牙4.0

相关文章:

你感兴趣的文章:

标签云: