user03
19th August 2016, 21:06
As per the examples provided on the Qt website, UUIDs of the adopted services can be used, however, is it possible to search a private service on the basis of UUID?
Below is the snippet of the code that is used to access the heart rate service:
void HeartRate::serviceDiscovered(const QBluetoothUuid &gatt)
{
if (gatt == QBluetoothUuid(QBluetoothUuid::HeartRate)) {
setMessage("Heart Rate service discovered. Waiting for service scan to be done...");
foundHeartRateService = true;
}
}
Is it possible to replace HeartRate with another private service, if yes, then could anyone provide the steps to achieve the same.
Below is the snippet of the code that is used to access the heart rate service:
void HeartRate::serviceDiscovered(const QBluetoothUuid &gatt)
{
if (gatt == QBluetoothUuid(QBluetoothUuid::HeartRate)) {
setMessage("Heart Rate service discovered. Waiting for service scan to be done...");
foundHeartRateService = true;
}
}
Is it possible to replace HeartRate with another private service, if yes, then could anyone provide the steps to achieve the same.