mirror of
https://github.com/zjs81/meshcore-open.git
synced 2026-04-20 22:13:48 +00:00
chrome BLE sync
This commit is contained in:
parent
452e5337f0
commit
ab05cf8b3e
1 changed files with 2 additions and 1 deletions
|
|
@ -891,8 +891,9 @@ class MeshCoreConnector extends ChangeNotifier {
|
|||
// We trigger it but don't await its completion to avoid blocking the connection flow.
|
||||
debugPrint('Web: Calling setNotifyValue(true) without awaiting');
|
||||
// ignore: unawaited_futures
|
||||
_txCharacteristic!.setNotifyValue(true).catchError((e) {
|
||||
_txCharacteristic!.setNotifyValue(true, timeout: 2).catchError((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
|
||||
await Future.delayed(const Duration(milliseconds: 500));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue