蓝牙通讯组件
继承层次
命名空间:
Smobiler.Plugins
程序集:
Smobiler.Plugins (在 Smobiler.Plugins.dll 中) 版本:6.0.641.16928
语法 public class Bluetooth : MobileComponent
Public Class Bluetooth
Inherits MobileComponent
Bluetooth 类型公开以下成员。
构造函数 属性 方法
| 名称 | 说明 |
---|
| Close |
关闭蓝牙
|
| CloseAllConnect |
断开连接上的所有经典蓝牙设备(IsReset为false时有效)
|
| CloseAllConnectBle |
断开连接上的所有低功耗蓝牙设备(IsReset为false时有效)
|
| CloseConnect(ComponentOnResultHandler) |
断开连接上的经典蓝牙设备
|
| CloseConnect(String, ComponentOnResultHandler) |
断开连接上的指定经典蓝牙设备
|
| CloseConnectBle(ComponentOnResultHandler) |
断开连接上的低功耗蓝牙设备
|
| CloseConnectBle(String, ComponentOnResultHandler) |
断开连接上的指定低功耗蓝牙设备
|
| Connect |
连接指定经典蓝牙
|
| ConnectBle |
连接指定低功耗蓝牙
|
| ConnectWithSearch |
连接指定经典蓝牙,在未配对的情况下会尝试搜索连接
|
| GetBleStatus |
获取低功耗蓝牙连接状态
|
| GetStatus |
获取经典蓝牙连接状态
|
| iOSCloseConnectBle |
iOS断开连接上的指定低功耗蓝牙设备
|
| iOSConnectBle |
iOS连接指定低功耗蓝牙
|
| iOSDiscoverUuid |
iOS搜索指定已连接设备的服务
|
| iOSReadBleData |
iOS读取蓝牙设备数据
|
| iOSScanAndConnectBle |
iOS扫描并连接指定的低功耗蓝牙
|
| iOSSearchBle |
iOS查找低功耗蓝牙
|
| iOSStartNotification |
iOS打开蓝牙的订阅(只有开启订阅才可以进行读写操作)
|
| iOSStopNotification |
iOS关闭蓝牙的订阅
|
| iOSWriteBleData |
iOS向蓝牙设备写数据
|
| Open |
打开蓝牙
|
| Search |
查找并连接经典蓝牙
|
| SearchBle |
查找并连接低功耗蓝牙
|
| WriteBleData(Byte, BluetoothBleResponse, ComponentOnResultHandler) |
发送低功耗蓝牙信息
|
| WriteBleData(String, Byte, BluetoothBleResponse, ComponentOnResultHandler) |
发送低功耗蓝牙信息
|
| WriteBleDataAll |
给所有设备发送低功耗蓝牙信息(IsReset为false时有效)
|
| WriteData(Byte, ComponentOnResultHandler) |
发送经典蓝牙信息
|
| WriteData(String, Byte, ComponentOnResultHandler) |
发送经典蓝牙信息
|
| WriteDataAll |
给所有设备发送经典蓝牙信息(IsReset为false时有效)
|
Top事件 参见