Tour Preview

Find the Best Demos and Examples

Check out this quick tour to find the best demos and examples for you, and to see how the Felgo SDK can help you to develop your next app or game!

BluetoothLeService

Bluetooth Low Energy Service, groups Characteristics. More...

Import Statement: import Felgo 3.0
Since: Felgo 3.7.0

Properties

Detailed Description

General info and usage examples for Bluetooth LE: Use Bluetooth Low Energy

The BluetoothLeService is basically a characteristic grouping entity with an UUID and a name.

You can define ahead of time the characteristics you expect from your service by setting the uuid.

 BluetoothLeService {
   uuid: 0x180F
   BluetoothLeCharacteristic {
     uuid: 0x2A19
   }
 }

Property Documentation

characteristics : list<BluetoothLeCharacteristic>

The list of characteristics discovered for the servide or described in QML ahead of time.


name : string

The service name reported by the device.


uuid : var

Reading the uuid will always return the long 128bit string formated value as "{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}" where 'x' is a hex digit. A short 16bit uuid can be set using the 0xXXXX notation. Just like the example above.


valid : bool

Set if a valid service is discovered for the current uuid.