[Interest] Problem creating QLowEnergyService object

Christian Kandeler christian.kandeler at qt.io
Thu Oct 8 10:21:21 CEST 2020


On Wed, 7 Oct 2020 20:58:31 -0400
tom spencer via Interest <interest at qt-project.org> wrote:

> Background info - I am working with a Polar H10 heart rate sensor - the 
> sensor provides both heart rate and ecg data.
> 
> I have no problem creating a QLowEnergyService object when I am dealing 
> with heart rate. The problem lies with attempting to create the service 
> object for ecg. The createServiceObject takes a QBluetoothUuid, problem 
> is ecg is not one of the GATT standard items and is not contained in 
> QBluetoothUuid. 

What do you mean by that? There are some convenience enums in QBluetoothUuid, but also various constructors taking e.g. a QUuid. So it seems trivial to construct a QBluetoothUuid with an arbitrary value, does it not?


Christian


More information about the Interest mailing list