[Interest] BTLE: Service Changed on iOS
cagnulein
cagnulein at gmail.com
Tue Dec 29 18:37:52 CET 2020
Hi everyone,
i'm trying to understand a strange behavior about iOS and BTLE.
I'm developing an application that use peripheral bluetooth role and it
works fine on android and iOS too.
Now i would like to implement the Service changed indication.
On Android works fine, instead on iOS, the device stops to advertise any
services.
These are the lines of codes:
{
QLowEnergyCharacteristicData charData;
charData.setUuid(QBluetoothUuid::CharacteristicType::ServiceChanged);
charData.setProperties(QLowEnergyCharacteristic::Indicate);
const QLowEnergyDescriptorData cpClientConfig
(QBluetoothUuid::ClientCharacteristicConfiguration,
QByteArray(2, 0));
charData.addDescriptor(cpClientConfig);
serviceDataChanged.setType(QLowEnergyServiceData::ServiceTypePrimary);
serviceDataChanged.setUuid
(QBluetoothUuid::ServiceClassUuid::GenericAttribute);
serviceDataChanged.addCharacteristic(charData);
}
//! [Start Advertising]
leController = QLowEnergyController::createPeripheral();
Q_ASSERT(leController);
serviceChanged = leController->addService(serviceDataChanged);
Do you have any idea? Is this feature enabled on iOS?
Thanks
Roberto Viola
Software engineer and open source enthusiast
http://robertoviola.cloud
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20201229/845b2eb5/attachment.html>
More information about the Interest
mailing list