Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Develop #109

Merged
merged 16 commits into from
Mar 6, 2024
Merged

Develop #109

merged 16 commits into from
Mar 6, 2024

Conversation

kevincar
Copy link
Owner

@kevincar kevincar commented Jul 1, 2023

No description provided.

kevincar and others added 15 commits March 2, 2023 14:01
…nt-checks-all-service-providers

Only one service advertize for server
…nly-after-i-kill-the-server

87 write request get executed only after i kill the server
Adjusting interval is classified as Experimental in BlueZ and really work only:

when BlueZ is compiled with such option (usually it is)
and when "bluetoothd" daemon is started with -E, --experimental option (usually it's not)
They are taken into account only with Kernel v5.11+ and BlueZ v5.65+.
It's a known fact that BlueZ verions 5.63-5.64 have broken Dbus part for LEAdvertisingManager and do not work properly when the Experimental mode is enabled.
Decrease default Advertisement interval from 1200 to 100 ms
Currently neither application nor advertisement are unregistered on
server stop. This leads to an re-export in case of a later start() which
dbus-fast will acknoledge with an exception:

```
ValueError: An interface with this name is already exported on this bus at path "/": "org.bluez"
```

Instead of only exporting once and keeping track internally we instead unexport the interfaces
on server shutdown.

Signed-off-by: Mimoja <git@mimoja.de>
BlueZDBus: Unexport app and advertisement on stop()
The local name can be any utf-8 chars, but dbus requires a limited ASCII
character set. dbus-next will reject paths until they're [A-Za-z0-9_].#
Ensure dbus object path is only valid chars
@kevincar kevincar marked this pull request as ready for review March 6, 2024 22:12
@kevincar kevincar merged commit bd0bdf0 into master Mar 6, 2024
6 of 18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants