notifyDeviceData property

  1. @override
Stream<NotifyDeviceDataEntity> get notifyDeviceData
override

设备交互数据

Implementation

@override
Stream<NotifyDeviceDataEntity> get notifyDeviceData => bs.where((data) {
  return data["notifyType"] == "deviceData";
}).map((state) {
  final ndde = NotifyDeviceDataEntity.fromJson(state.cast<String, dynamic>());
  if (kDebugMode && Yasee.openLog) { print("Yasee-plugin | 交互数据(${ndde.data.step}): $state"); }
  return ndde;
});