MethodChannelYaseePlugin class

Inheritance

Constructors

MethodChannelYaseePlugin()

Properties

bs → Stream
latefinal
eventChannel → EventChannel
final
hashCode → int
The hash code for this object.
no setterinherited
info → String
SDK 信息
no setteroverride
methodChannel → MethodChannel
final
notify → Stream
所有的通知内容, 可以多发监听
no setteroverride
notifyBindDevices → Stream<NotifyDevicesEntity>
绑定列表变化
no setteroverride
notifyBleState → Stream<NotifyBleStateEntity>
蓝牙状态变化更新
no setteroverride
notifyDeviceData → Stream<NotifyDeviceDataEntity>
设备交互数据
no setteroverride
设备连接状态
no setteroverride
notifyHistoryData → Stream<NotifyHistoryDataEntity>
历史数据
no setteroverride
notifySearchDevices → Stream<NotifyDevicesEntity>
搜索设备数据
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

bind(Map<String, dynamic> map) → void
绑定设备 (根据MAC) 如果设备不存在 会新建设备!
override
cancel(String mac) → void
解绑&断开 (根据MAC)
override
checks(String model) → Future<List<CheckEntity>?>
获取设备的 检测项
override
cmds(CheckEntity check) → Future<List<CmdEntity>?>
获取检测项的 指令列表
override
configBle(Map<String, dynamic> bleConfig) → Future
设置 蓝牙 配置信息
override
configDevices(List devices) → Future
初始化 设备列表
override
configSerial(Map<String, dynamic> serialConfig) → Future
设置 串口 配置信息
override
configUser(int sex, int age, int smoking, int height, int weight) → Future
设置 用户信息
override
enableBle() → Future
打开蓝牙 (仅限 android)
override
getPlatformVersion() → Future<String?>
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
openColorimetry() → void
比色法获取结果
override
reconnect(String mac) → void
重连设备 (仅限iOS设备)
override
scan() → Future
搜索设备
override
send(String protocolType, String mac, CheckEntity check, String cmdId, {YaseeReqEntity? obj}) → Future
发送指令 (蓝牙(mac必须传递)、串口)
override
sendCustom(String mac, Uint8List data) → Future
发送自定义数据 (蓝牙(mac必须传递)、串口)
override
stop() → Future
停止搜索
override
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited