summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/model/flutter_blue_plus_device_connection.dart18
1 files changed, 9 insertions, 9 deletions
diff --git a/lib/model/flutter_blue_plus_device_connection.dart b/lib/model/flutter_blue_plus_device_connection.dart
index 93aa67e..d73fd82 100644
--- a/lib/model/flutter_blue_plus_device_connection.dart
+++ b/lib/model/flutter_blue_plus_device_connection.dart
@@ -45,15 +45,15 @@ class FlutterBluePlusDeviceConnection implements DeviceConnection {
await dev.connect().timeout(Duration(seconds: 2));
// // ???? WTF ????
List<BluetoothService> svcs = await dev.discoverServices();
- dev.onServicesReset.listen((_) async {
- logger.i("Services Reset");
- try {
- List<BluetoothService> svcs = await dev.discoverServices();
- findCharac(svcs);
- } catch (e) {
- logger.e(e);
- }
- });
+ // dev.onServicesReset.listen((_) async {
+ // logger.i("Services Reset");
+ // try {
+ // List<BluetoothService> svcs = dev.servicesList;
+ // findCharac(svcs);
+ // } catch (e) {
+ // logger.e(e);
+ // }
+ // });
logger.i("services discovered");