Interface ICharacteristic
Represents a Bluetooth characteristic.
Assembly: Meadow.Contracts.dll
View Source
public interface ICharacteristic : IAttribute
Properties
Name
Gets the name of the characteristic. This is only for user reference and is not used in Bluetooth Low Energy (BLE) functionality.
View Source
string Name { get; }
Uuid
Gets the UUID of the characteristic.
View Source
string Uuid { get; }
Permissions
Gets the permissions of the characteristic.
View Source
CharacteristicPermission Permissions { get; }
Properties
Gets the properties of the characteristic.
View Source
CharacteristicProperty Properties { get; }
MaxLength
Gets the maximum length of the characteristic value.
View Source
int MaxLength { get; }
Descriptors
Gets the descriptors associated with the characteristic.
View Source
IDescriptor[] Descriptors { get; }
Methods
SetValue(object)
Sets the value of the characteristic.
View Source
void SetValue(object value)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value | The value to set. |
Events
ValueSet
Occurs when the value of the characteristic is set.
View Source
event CharacteristicValueSetHandler ValueSet
Event Type
Meadow.Gateways.Bluetooth.CharacteristicValueSetHandler
ServerValueSet
Occurs when the server value of the characteristic is set.
View Source
event ServerValueChangedHandler ServerValueSet