Yasee class
顶级控制类
Constructors
- Yasee()
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- info → String
-
获取当前的 插件信息
no setter
- notify → Stream
-
获取全部的通知信息
no setter
-
notifyBindDevices
→ Stream<
NotifyDevicesEntity> -
监听绑定设备变化
no setter
-
notifyBleState
→ Stream<
NotifyBleStateEntity> -
监听设备蓝牙状态
no setter
-
notifyDeviceData
→ Stream<
NotifyDeviceDataEntity> -
监听设备数据变化
no setter
-
notifyDeviceLink
→ Stream<
NotifyDeviceLinkEntity> -
监听设备 连接状态
no setter
-
notifyHistoryData
→ Stream<
NotifyHistoryDataEntity> -
监听设备历史数据
no setter
-
notifySearchDevices
→ Stream<
NotifyDevicesEntity> -
监听搜索设备变化
no setter
- openLog ↔ bool
-
设置是否开启 日志
getter/setter pair
Static Methods
-
configBle(
{bool reconnect = true, int scanTime = 5}) → dynamic - Ble配置信息
-
configDevices(
List devices) → dynamic - 绑定列表初始化
-
configSerial(
{String? nodeFile, int beadRate = 9600}) → dynamic - 串口配置信息 (设置完成默认开始监听)
-
configUser(
int sex, int age, int smoking, int height, int weight) → dynamic - 人员配置信息
-
enable(
) → dynamic - 打开蓝牙
-
openColorimetry(
) → dynamic - 比色法 扫描获取检测结果
-
scan(
) → dynamic - 开始扫描 结果通过 Notify 发送通知
-
stop(
) → dynamic - 结束扫描