WinBleCharacteristic constructor

WinBleCharacteristic({
  1. required String deviceId,
  2. required String serviceId,
  3. required String characteristicId,
})

Implementation

WinBleCharacteristic({
  required this.deviceId,
  required this.serviceId,
  required this.characteristicId,
}) {
  backend.WinBle.characteristicValueStreamOf(
          address: deviceId,
          serviceId: serviceId,
          characteristicId: characteristicId)
      .listen((value) {
    notifyData(Uint8List.fromList(value));
  });
}