DeviceFunc extension
扩展 Device 功能:
- 绑定
- 获取支持的检测项
- 发送指令信息
- on
Properties
-
supportChecks
→ Future<
List< CheckEntity> ?> -
Available on DeviceEntity, provided by the DeviceFunc extension
获取 检测项目no setter
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
解绑&断开 设备 -
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
发送自定义数据