Interface IBleCharacteristic

Namespace: MOSAIC.Components.Manager.BLE
Assembly: MOSAIC.dll
Syntax
public interface IBleCharacteristic

Properties

Uuid

Declaration
Guid Uuid { get; }
Property Value
Type Description
Guid

Methods

StartNotificationsAsync(CancellationToken)

Declaration
Task StartNotificationsAsync(CancellationToken cancellationToken = default)
Parameters
Type Name Description
CancellationToken cancellationToken
Returns
Type Description
Task

WriteValueAsync(byte[], CancellationToken)

Writes a control value using the backend's supported write mode. Android and Apple prefer a remote acknowledgement; other backends retain their legacy write behavior.

Declaration
Task WriteValueAsync(byte[] value, CancellationToken cancellationToken = default)
Parameters
Type Name Description
byte[] value
CancellationToken cancellationToken
Returns
Type Description
Task

WriteValueWithoutResponseAsync(byte[], CancellationToken)

Declaration
Task WriteValueWithoutResponseAsync(byte[] value, CancellationToken cancellationToken = default)
Parameters
Type Name Description
byte[] value
CancellationToken cancellationToken
Returns
Type Description
Task

Events

ValueChanged

Declaration
event EventHandler<byte[]>? ValueChanged
Event Type
Type Description
EventHandler<byte[]>

Search documentation

Start typing to search the documentation.