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

Time-based caching of overflows UUIDs of advertisement data #43

Open
1 task done
Supereg opened this issue Jul 12, 2024 · 0 comments
Open
1 task done

Time-based caching of overflows UUIDs of advertisement data #43

Supereg opened this issue Jul 12, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@Supereg
Copy link
Member

Supereg commented Jul 12, 2024

Problem

Currently, we only consider the advertised service UUIDs in the main advertisement packet and do not consider the service UUIDs as part of the overflow area which is send in some intervals.
#41 already updated to also consider the overflowServiceUUIDs of the current AdvertisementData instance. However, the overflow area might not always be sent and therefore the overflowServiceUUIDs might be periodically overwritten by new advertisements.

Solution

We need to retain the overflowServiceUUIDs of previous advertisements. However, we also need to release them after a certain amount of time as otherwise we wouldn't detect a peripheral that stopped advertising a service that was previously part of the overflow area.

Additional context

It might make sene to research more in-depth, how the overflow area exactly works and in which intervals it is sent to decide what a good maximum timeout is.

Code of Conduct

  • I agree to follow this project's Code of Conduct and Contributing Guidelines
@Supereg Supereg added the enhancement New feature or request label Jul 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant