O'Reilly logo

Qt 5 Projects by Marco Piccolino

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Providing information about service discoverability

To make the service discoverable by remote devices, we need to add the PublicBrowseGroup UUID to the BrowseGroupList attribute. This is done as follows:

bool channels::BroadcasterBt::_provideServiceDiscoverability(){    qDebug() << Q_FUNC_INFO;    QBluetoothServiceInfo::Sequence publicBrowse;    publicBrowse << QVariant::fromValue(QBluetoothUuid(QBluetoothUuid::PublicBrowseGroup));    _serviceInfo.setAttribute(QBluetoothServiceInfo::BrowseGroupList, publicBrowse);    return _serviceInfo.isValid();}

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required