点击或拖拽改变大小

Bluetooth 类

蓝牙通讯组件
继承层次

命名空间:  Smobiler.Plugins
程序集:  Smobiler.Plugins (在 Smobiler.Plugins.dll 中) 版本:6.0.641.16928
语法
public class Bluetooth : MobileComponent

Bluetooth 类型公开以下成员。

构造函数
  名称说明
公共方法Bluetooth
获取一个实例
Top
属性
  名称说明
公共属性BluetoothStatus
蓝牙状态
公共属性Form
获取组件所属窗体
(继承自 MobileComponent。)
公共属性IsReset
是否重置蓝牙连接,即为true时,同一种蓝牙设备只能连接一台,为false时,允许多个连接
公共属性Name
获取或设置控件的名称。
(继承自 MobileComponent。)
公共属性Parent
获取控件的父控件MobileParentControl。
(继承自 MobileComponent。)
Top
方法
  名称说明
公共方法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
事件
  名称说明
公共事件DataReceived
接收蓝牙后发生。
Top
参见