This commit is contained in:
2024-08-29 21:16:30 +02:00
commit 3d258f0e3b
36 changed files with 1852 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
import 'package:bluetooth_classic/bluetooth_classic.dart';
import 'package:bluetooth_classic/models/device.dart';
class Custombluetoothservice extends BluetoothClassic {
// @override
// Stream<Uint8List> onDeviceDataReceived() {
// return _onDeviceDataReceived ??=
// super.onDeviceDataReceived().asBroadcastStream();
// }
// Stream<Uint8List>? _onDeviceDataReceived;
@override
Stream<Device> onDeviceDiscovered() =>
_onDeviceDiscovered ??= super.onDeviceDiscovered().asBroadcastStream();
Stream<Device>? _onDeviceDiscovered;
@override
Stream<int> onDeviceStatusChanged() =>
_onDeviceStatusChanged ??=
super.onDeviceStatusChanged().asBroadcastStream();
Stream<int>? _onDeviceStatusChanged;
}