Class Service
Provides access to a device Bluetooth capabilities
Assembly: Meadow.dll
View Source
public class Service : IService, IJsonSerializable
Implements:
Meadow.Gateways.Bluetooth.IService, Meadow.Gateways.Bluetooth.IJsonSerializable
Properties
Handle
Gets or sets the handle for the service.
View Source
public ushort Handle { get; set; }
Name
Gets the name of the service.
View Source
public string Name { get; }
Uuid
Gets the UUID of the service.
View Source
public ushort Uuid { get; }
Characteristics
Gets the collection of characteristics associated with this service.
View Source
public CharacteristicCollection Characteristics { get; }
Methods
ToJson()
Converts the service to a JSON string.
View Source
public string ToJson()
Returns
System.String
: A JSON representation of the service.