Skip to content

Commit

Permalink
catch ios error on subscribing to characteristic
Browse files Browse the repository at this point in the history
  • Loading branch information
Codel1417 committed Jan 18, 2025
1 parent 9596560 commit 5306a41
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/Backend/Bluetooth/bluetooth_manager_plus.dart
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,11 @@ class _OnDiscoveredServices extends _$OnDiscoveredServices {
statefulDevice?.bluetoothUartService.value = bluetoothUartService;
}
for (BluetoothCharacteristic characteristic in service.characteristics) {
await characteristic.setNotifyValue(true);
try {
await characteristic.setNotifyValue(true);
} on Exception catch (e) {
// TODO
}
}
}
}
Expand Down

0 comments on commit 5306a41

Please sign in to comment.