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