On Thu, 1 Nov 2018 08:11:55 +0100
Erik Botö <erik.b...@gmail.com> wrote:

> I want to expose multiple BLE services from one device using Qt (on linux),
> but don't know how to do it if it's even possible.
> 
> In my specific case I want my device to be both a heart rate service (HRS)
> and a cycling power service (CPS).
> 
> My testing code is very similar to the heart rate server example from Qt's
> documentation,
> http://doc.qt.io/qt-5/qtbluetooth-heartrate-server-main-cpp.html, and I've
> tried the following two approaches:
> 
>    1. Using two QLowEnergyControllers from one application

AFAIK, a QLowEnergyController instance represents a device, so I don't think 
this is possible (unless you address two distinct BLE devices).

>    2. Using one QLowEnergyController, but adding two different services
>    using bleController->addService().

That should work.

> However it doesn't seems like either one is working properly.

You'll have to be more specific than that.


Christian
_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to