Class: Toybox.BluetoothLowEnergy.Device
- Inherits:
-
Toybox.Lang.Object
Overview
Represents a Bluetooth Low Energy Device that has been paired with the system.
This class cannot be instantiated, access to paired system devices is done through the use of BluetoothLowEnergy.getPairedDevices() or by calling BluetoothLowEnergy.pairDevice() after receiving a ScanResult for a device
Instance Method Summary collapse
-
getName() as Lang.String or Null
Retrieves the Name of the sensor according to the device name that is available in the GAP Service.
-
getService(uuid as BluetoothLowEnergy.Uuid) as BluetoothLowEnergy.Service or Null
Retrieves the service with a specified UUID If access to a specific service is required, use this function to directly access the service based on a UUID.
-
getServices() as BluetoothLowEnergy.Iterator
Retrieves an Iterator over the services provided by the device.
-
isConnected() as Lang.Boolean
Gets the connected status of the device.
Instance Method Details
getName() as Lang.String or Null
Retrieves the Name of the sensor according to the device name that is available in the GAP Service
getService(uuid as BluetoothLowEnergy.Uuid) as BluetoothLowEnergy.Service or Null
Retrieves the service with a specified UUID
If access to a specific service is required, use this function to directly access the service based on a UUID.
getServices() as BluetoothLowEnergy.Iterator
Retrieves an Iterator over the services provided by the device.
This will only provide Services that have been registered using BluetoothLowEnergy.registerProfile()
isConnected() as Lang.Boolean
Gets the connected status of the device