mirror of
https://github.com/zjs81/meshcore-open.git
synced 2026-07-05 00:10:58 +10:00
BLE fix
This commit is contained in:
@@ -893,6 +893,7 @@ class MeshCoreConnector extends ChangeNotifier {
|
|||||||
// ignore: unawaited_futures
|
// ignore: unawaited_futures
|
||||||
_txCharacteristic!.setNotifyValue(true, timeout: 2).catchError((e) {
|
_txCharacteristic!.setNotifyValue(true, timeout: 2).catchError((e) {
|
||||||
debugPrint('Web setNotifyValue error (ignoring): $e');
|
debugPrint('Web setNotifyValue error (ignoring): $e');
|
||||||
|
return false; // catchError must return a bool to match Future<bool>
|
||||||
});
|
});
|
||||||
// Give the browser a moment to process the underlying startNotifications call
|
// Give the browser a moment to process the underlying startNotifications call
|
||||||
await Future.delayed(const Duration(milliseconds: 500));
|
await Future.delayed(const Duration(milliseconds: 500));
|
||||||
|
|||||||
Reference in New Issue
Block a user