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

Testing the service discovery

Since we haven't implemented any Bluetooth client yet, we need a way to make sure that the service is available to remote devices, and is being advertised by the local Bluetooth adapter.

We can achieve this by using a ready-made client, and having it search for our service. Qt provides a Bluetooth Chat Example (http://doc.qt.io/qt-5.9/qtbluetooth-btchat-example.html) that can be used for this purpose. The example should already be available in your Qt distribution, and be accessible via Qt Creator's Examples tab in the Welcome mode:

Both Qt Widgets and a QML Example are available. While both work, the Widgets ...

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