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 BluetoothLowEnergy.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 Mar 18, 2024 2:40:10 PM