Skip to main content

Interface ICharacteristic

Represents a Bluetooth characteristic.

Assembly: Meadow.Contracts.dll​
View Source​
Declaration
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​
Declaration
string Name { get; }

Uuid​

Gets the UUID of the characteristic.

View Source​
Declaration
string Uuid { get; }

Permissions​

Gets the permissions of the characteristic.

View Source​
Declaration
CharacteristicPermission Permissions { get; }

Properties​

Gets the properties of the characteristic.

View Source​
Declaration
CharacteristicProperty Properties { get; }

MaxLength​

Gets the maximum length of the characteristic value.

View Source​
Declaration
int MaxLength { get; }

Descriptors​

Gets the descriptors associated with the characteristic.

View Source​
Declaration
IDescriptor[] Descriptors { get; }

Methods​

SetValue(object)​

Sets the value of the characteristic.

View Source​
Declaration
void SetValue(object value)
Parameters​
TypeNameDescription
System.ObjectvalueThe value to set.

Events​

ValueSet​

Occurs when the value of the characteristic is set.

View Source​
Declaration
event CharacteristicValueSetHandler ValueSet
Event Type​

Meadow.Gateways.Bluetooth.CharacteristicValueSetHandler

ServerValueSet​

Occurs when the server value of the characteristic is set.

View Source​
Declaration
event ServerValueChangedHandler ServerValueSet
Event Type​

Meadow.Gateways.Bluetooth.ServerValueChangedHandler