[Interest] Qt5.7 BLE advertising, contents added twice

Marco Trapanese marcotrapanese at gmail.com
Fri Aug 26 15:00:21 CEST 2016


Hello!
With Qt5.7 under Linux Debian (kernel 4.4.11-v7+, bluez 5.40) I set up 
my own GATT server.
In my code I set up the advertising packet in this way:

> QLowEnergyAdvertisingData advertisingData;
> advertisingData.setDiscoverability(QLowEnergyAdvertisingData::DiscoverabilityGeneral);
> advertisingData.setIncludePowerLevel(false);
> advertisingData.setLocalName("0123456789");
> leController->startAdvertising(QLowEnergyAdvertisingParameters(), 
> advertisingData, QLowEnergyAdvertisingData());
> advertisingData.setServices(QList<QBluetoothUuid>() << [my-128-bit-uuid]);

At runtime I get:

> qt.bluetooth.bluez: services data does not fit into advertising data 
> packet

inspecting the advertising data with the Android app from Nordic, I see 
the LocalName is set 2 times! And I can't see my uuid.
Is this the correct behavior? Am I missing something?

Thanks!
Marco






More information about the Interest mailing list