YaseePluginPlatform class abstract

Inheritance
Implementers

Constructors

YaseePluginPlatform()

Properties

hashCode → int
The hash code for this object.
no setterinherited
info → String
SDK 信息
no setter
notify → Stream
广播信息
no setter
notifyBindDevices → Stream<NotifyDevicesEntity>
no setter
notifyBleState → Stream<NotifyBleStateEntity>
no setter
notifyDeviceData → Stream<NotifyDeviceDataEntity>
no setter
no setter
notifyHistoryData → Stream<NotifyHistoryDataEntity>
no setter
notifySearchDevices → Stream<NotifyDevicesEntity>
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

Operators

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

Static Properties

instance ↔ YaseePluginPlatform
getter/setter pair