BluetoothCharacteristicWindows constructor
BluetoothCharacteristicWindows({
- required DeviceIdentifier remoteId,
- required Guid serviceUuid,
- required Guid characteristicUuid,
- required List<
BluetoothDescriptor> descriptors, - required Properties propertiesWinBle,
- Guid? secondaryServiceUuid,
Implementation
BluetoothCharacteristicWindows({
required this.remoteId,
required this.serviceUuid,
required this.characteristicUuid,
required this.descriptors,
required this.propertiesWinBle,
this.secondaryServiceUuid,
}) : super.fromProto(
BmBluetoothCharacteristic(
remoteId: DeviceIdentifier(remoteId.str),
serviceUuid: serviceUuid,
secondaryServiceUuid: secondaryServiceUuid,
characteristicUuid: characteristicUuid,
descriptors: [
for (final descriptor in descriptors)
BmBluetoothDescriptor(
remoteId: DeviceIdentifier(descriptor.remoteId.str),
serviceUuid: descriptor.serviceUuid,
characteristicUuid: descriptor.characteristicUuid,
descriptorUuid: descriptor.uuid,
),
],
properties: BmCharacteristicProperties(
broadcast: propertiesWinBle.broadcast ?? false,
read: propertiesWinBle.read ?? false,
writeWithoutResponse:
propertiesWinBle.writeWithoutResponse ?? false,
write: propertiesWinBle.write ?? false,
notify: propertiesWinBle.notify ?? false,
indicate: propertiesWinBle.indicate ?? false,
authenticatedSignedWrites:
propertiesWinBle.authenticatedSignedWrites ?? false,
// TODO: implementation missing
extendedProperties: false,
// TODO: implementation missing
notifyEncryptionRequired: false,
// TODO: implementation missing
indicateEncryptionRequired: false,
),
),
);