Reference   Language | Libraries | Comparison | Changes

ArduinoBLE : BLEService class

uuid()

Description

Query the UUID of the specified BLEService.

Syntax

bleService.uuid()

Parameters

None

Returns

UUID of the BLE service as a string.

Example


BLEService ledService("19B10000-E8F2-537E-4F6C-D104768A1214"); // BLE LED Service

// …
Serial.print(“LED service UUID =);
Serial.println(ledService.uuid());

See Also





Reference Home

Corrections, suggestions, and new documentation should be posted to the Forum.

The text of the Arduino reference is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the reference are released into the public domain.