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
_______________________________________________
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest

Reply via email to