[Interest] Problem creating QLowEnergyService object

tom spencer nga_tom_s at yahoo.com
Thu Oct 8 15:39:15 CEST 2020

Thank you, creating a QUuid solved the problem


On 10/8/2020 4:21 AM, Christian Kandeler wrote:
> 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
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> https://lists.qt-project.org/listinfo/interest

More information about the Interest mailing list