If you have the UUID as a string then I guess the obvious place to start would be:
namespace {
QString const privateServiceUUID
("b3deffdf-5346-4b50-ab23-6cb32cc56bcc");
}
void HeartRate::serviceDiscovered(const QBluetoothUuid &gatt)
{
if (gatt == QBluetoothUuid(privateServiceUUID)) {
setMessage("Heart Rate service discovered. Waiting for service scan to be done...");
foundHeartRateService = true;
}
}
namespace {
QString const privateServiceUUID("b3deffdf-5346-4b50-ab23-6cb32cc56bcc");
}
void HeartRate::serviceDiscovered(const QBluetoothUuid &gatt)
{
if (gatt == QBluetoothUuid(privateServiceUUID)) {
setMessage("Heart Rate service discovered. Waiting for service scan to be done...");
foundHeartRateService = true;
}
}
To copy to clipboard, switch view to plain text mode
Bookmarks