ArduinoBLE - bleService.uuid()

Query the UUID of the specified BLEService.

Syntax

bleService.uuid()

Parameters

None

Returns

  • UUID of the Bluetooth® Low Energy service as a String.

Example


BLEService ledService("19B10000-E8F2-537E-4F6C-D104768A1214"); // Bluetooth® Low Energy LED Service


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