ZygBluetoothTool class
Constructors
- ZygBluetoothTool.new()
-
factory
Properties
- connect_Device ↔ ScanResult?
-
连接蓝牙设备前会对此属性赋值
getter/setter pair
- connect_drviceMap ↔ Map
-
解析 ScanResult 之后的相关值
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- isConnected ↔ bool
-
设备连接状态
getter/setter pair
- isScanning ↔ bool
-
getter/setter pair
- isScanning_listen ↔ StreamSubscription?
-
监听 是否正在连接
getter/setter pair
- myCmdCallback ↔ CmdCallback?
-
发送指令后的相关回调
getter/setter pair
- myConnectedCallback ↔ ConnectedCallback?
-
已经连接设备的时候回调
getter/setter pair
- myIsEncryption ↔ bool
-
当前指令是否需要加密
getter/setter pair
- myScaningResultCallback ↔ ScaningResultCallback?
-
搜索到设备的回调
getter/setter pair
- myScanningCallback ↔ ScanningCallback?
-
停止搜索,会调用
getter/setter pair
- mySendCustomDataCallBack ↔ SendCustomDataCallBack?
-
发送自定义指令后的回调
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- subscription_characteristic_onValueReceived ↔ StreamSubscription?
-
监听接收到的蓝牙数据
getter/setter pair
- subscription_device_connectionState ↔ StreamSubscription?
-
请求蓝牙连接之后的连接状态
getter/setter pair
- subscription_FlutterBluePlus_adapterState ↔ StreamSubscription?
-
监听蓝牙的开启关闭之类的状态
getter/setter pair
- subscription_FlutterBluePlus_onScanResults ↔ StreamSubscription?
-
监听蓝牙搜索到的结果
getter/setter pair
Methods
-
beginBlue(
) → dynamic -
beginScaningWithCallback(
ScaningResultCallback callbak, ScanningCallback isScanningCallback) → dynamic -
getIntList(
String str) → List< int> -
getNiceHexArray(
List< int> bytes) → String -
getNiceManufacturerData(
List< List< data) → Stringint> > -
goToConnet(
ScanResult scanResult, ConnectedCallback callback) → void -
goToScan(
) → dynamic - 扫描设备
-
isSupported(
) → Future< bool> -
jiexiScanResult(
ScanResult scanResult) → Map -
my_disconnect(
) → dynamic -
myDisconnect(
) → dynamic -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
sendCMD(
BluetoothCharacteristic characteristic, BluetoothAction action, dynamic dataContent) → void - 去发指令: 绑定手机 去发指令
-
setMy_subscription_characteristic_onValueReceived(
BluetoothCharacteristic characteristic, BluetoothAction action) → void - 监听 接收到的蓝牙数据
-
setMy_subscription_characteristic_onValueReceived_forCustomData(
BluetoothCharacteristic characteristic) → void - 监听 接收到的蓝牙数据
-
setMySubscription_Device_connectionState(
BluetoothDevice device) → void - 申请连接之后,监听连接状态
-
setMySubscription_FlutterBluePlus_adapterState(
) → void - 监听蓝牙的开启关闭之类的状态
-
setMySubscriptionFlutterBluePlusOnScanResults(
) → void - 监听 搜索蓝牙设备的搜索结果
-
stopScan(
) → Future< void> - 停止扫描
-
toString(
) → String -
A string representation of this object.
inherited
-
zyg_senCustomData(
BluetoothDevice device, List< int> data, bool isEncryption, SendCustomDataCallBack? callBack) → dynamic - 发送自定义数据
-
zyg_sendCMD(
BluetoothDevice device, BluetoothAction cmdType, dynamic dataContent, CmdCallback? callBack) → dynamic - 发指令
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
cmdMsgHandle(
dynamic msg, Map dataMap) → dynamic