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 Sep 23, 2024, 3:32:48 PM