Class: Toybox.BluetoothLowEnergy.Service
- Inherits:
-
Toybox.Lang.Object
Overview
Encapsulates a service provided by a device
Instance Method Summary collapse
-
getCharacteristic(uuid as BluetoothLowEnergy.Uuid) as BluetoothLowEnergy.Characteristic or Null
Retrieves the Characteristic with a specified UUID.
-
getCharacteristics() as BluetoothLowEnergy.Iterator
Retrieves an Iterator over the Characteristics in a Service This will only provide Characteristics that have been registered using registerProfile().
-
getDevice() as BluetoothLowEnergy.Device
Retrieves the Service's Device Retrieve the Device that this service belongs to.
-
getUuid() as BluetoothLowEnergy.Uuid
Returns the UUID of the service.
Instance Method Details
getCharacteristic(uuid as BluetoothLowEnergy.Uuid) as BluetoothLowEnergy.Characteristic or Null
Retrieves the Characteristic with a specified UUID
getCharacteristics() as BluetoothLowEnergy.Iterator
Retrieves an Iterator over the Characteristics in a Service
This will only provide Characteristics that have been registered using registerProfile()
getDevice() as BluetoothLowEnergy.Device
Retrieves the Service's Device
Retrieve the Device that this service belongs to
getUuid() as BluetoothLowEnergy.Uuid
Returns the UUID of the service