DeviceEntity class

设备信息

Available extensions
Annotations

Constructors

DeviceEntity({String model = '', String mac = '', String cUuid = '', int state = 0, DeviceAdvertisementData? advertisementData})
DeviceEntity.fromJson(Map json)
factory

Properties

advertisementData DeviceAdvertisementData?
avd信息
getter/setter pair
cUuid String
iOS端remoteID
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
lastState int
上次的连接状态
getter/setter pair
lastUpdateTime int
上次的更新时间
getter/setter pair
mac String
MAC 地址
getter/setter pair
model String
设备 名称
getter/setter pair
protocolType String
设备类型
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
SSID String
wifi-SSID
getter/setter pair
state int
连接状态 0-未连接 1-连接成功 2-读写成功
getter/setter pair
supportChecks Future<List<CheckEntity>?>

Available on DeviceEntity, provided by the DeviceFunc extension

获取 检测项目
no setter
updateTime int
更新时间
getter/setter pair

Methods

bind({Map<String, dynamic>? map}) → void

Available on DeviceEntity, provided by the DeviceFunc extension

绑定 设备
cancel() → void

Available on DeviceEntity, provided by the DeviceFunc extension

解绑&断开 设备
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reconnect() → void

Available on DeviceEntity, provided by the DeviceFunc extension

重连设备 (仅限iOS)
reqBattery() → void

Available on DeviceEntity, provided by the DeviceFunc extension

获取电量 (目前仅限TMD自有设备!)
send(CheckEntity check, String cmdId, {YaseeReqEntity? obj}) → void

Available on DeviceEntity, provided by the DeviceFunc extension

发送信息
sendCustom(Uint8List data) → void

Available on DeviceEntity, provided by the DeviceFunc extension

发送自定义数据
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
override

Operators

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