value property
int
get
value
Retrieves the bitmask value corresponding to the characteristic property.
Each characteristic property has a unique bitmask value. This method maps the enum value to its corresponding bitmask value.
Implementation
int get value {
switch (this) {
case BleCharacteristicProperty.broadcast:
return 0x01;
case BleCharacteristicProperty.read:
return 0x02;
case BleCharacteristicProperty.noResponse:
return 0x04;
case BleCharacteristicProperty.write:
return 0x08;
case BleCharacteristicProperty.notify:
return 0x10;
case BleCharacteristicProperty.indicate:
return 0x20;
case BleCharacteristicProperty.signedWrite:
return 0x40;
case BleCharacteristicProperty.props:
return 0x80;
case BleCharacteristicProperty.reliableWrite:
return 0x100;
case BleCharacteristicProperty.writableAuxiliaries:
return 0x200;
}
}