Class: Toybox.BluetoothLowEnergy.Service

Overview

Encapsulates a service provided by a device

Since:

API Level 3.1.0

Instance Method Summary collapse

Instance Method Details

getCharacteristic(uuid as BluetoothLowEnergy.Uuid) as BluetoothLowEnergy.Characteristic or Null

Retrieves the Characteristic with a specified UUID

Parameters:

Returns:

  • BluetoothLowEnergy.Characteristic

    The Characteristic represented by the UUID provided or, null if the characteristic does not exist or the UUID has not be registered.

Since:

API Level 3.1.0

getCharacteristics() as BluetoothLowEnergy.Iterator

Retrieves an Iterator over the Characteristics in a Service

This will only provide Characteristics that have been registered using registerProfile()

Returns:

Since:

API Level 3.1.0

getDevice() as BluetoothLowEnergy.Device

Retrieves the Service's Device

Retrieve the Device that this service belongs to

Returns:

Since:

API Level 3.1.0

getUuid() as BluetoothLowEnergy.Uuid

Returns the UUID of the service

Returns:

Since:

API Level 3.1.0


Generated Dec 11, 2024, 8:58:42 AM