-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
ble_sdk_custom.dart
Future _setNotifications(List listNotifications) async {
bool result = false;
for (final notification in listNotifications) {
await Future.delayed(const Duration(milliseconds: 500));
if (notification.properties.contains(CharacteristicProperties.NOTIFY)) {
// log('Set notification to ${notification.characteristicId} - ${DateTime.now()}');
result = await setNotification(notification);
}
if (notification.properties.contains(CharacteristicProperties.INDICATE)) {
// log('Set indication to ${notification.characteristicId} - ${DateTime.now()}');
result = await setIndication(notification);
}
if (!result) return false;
}
return true;
}
Metadata
Metadata
Assignees
Labels
No labels