subscribeCharacteristic method
Implementation
@override
Stream<Uint8List> subscribeCharacteristic(
String address, String service, String characteristic) async* {
final channelName =
await methodChannel.invokeMethod('subscribeCharacteristic', {
'id': address,
'service': service,
'characteristic': characteristic,
});
yield* EventChannel(channelName)
.receiveBroadcastStream()
.map((event) => event as Uint8List);
}