You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I have a problem with the Bluetooth Low Energy advertising of my GATT peripheral. Basically, some Android devices can see the device, while others (newer ones, such as Samsungs and iPhones) cannot see it, even after waiting longer.
I tried setting a lower the max interval to 250ms, but even then nothing happened.
I have BlueZ version 5.72 and the latest version of crate.
This is the code I currently use for advertising:
let local_name = Some(name.into());
let service_uuids = BTreeSet::from([uuid::SERVICE_BATTERY, uuid::SERVICE_MICROPHONE]);
// Start advertising
let adv_handle = {
let le_adv = Advertisement {
local_name,
service_uuids,
advertisement_type: Type::Peripheral,
discoverable: Some(true),
..Default::default()
};
adapter.advertise(le_adv).await?
}
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I have a problem with the Bluetooth Low Energy advertising of my GATT peripheral. Basically, some Android devices can see the device, while others (newer ones, such as Samsungs and iPhones) cannot see it, even after waiting longer.
I tried setting a lower the max interval to
250ms, but even then nothing happened.I have
BlueZversion5.72and the latest version of crate.This is the code I currently use for advertising:
Beta Was this translation helpful? Give feedback.
All reactions