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

[feature request] filter out advertisement duplicates #202

Open
bam80 opened this issue Dec 25, 2023 · 0 comments
Open

[feature request] filter out advertisement duplicates #202

bam80 opened this issue Dec 25, 2023 · 0 comments

Comments

@bam80
Copy link

bam80 commented Dec 25, 2023

In a passive scanning mode, the data usually duplicated several times between the neighbor advertisements.
This is inevitable measure for BLE 4.x to counter overlaps, etc.
pvvx/ATC_MiThermometer#450 (comment)

From informational point of view, such duplicated packets do not hold a new data (those might still be useful for the statistics, though).
It would be good to have ability to filter them out, and only send out MQTT packets for a new data in the advertisements.

In both alternative firmware's (and maybe others), Bluetooth Advertising Format has "measurement counter" field increased with each new measurement.
We could optionally send out a new MQTT packets only when the counter increases, thus filtering the duplicates out.

I tried to make the advertisement interval wider, but that's restricted by BLE 4.x standards to 10 sec max.

The MQTT app I use has limited amount of stored packets for graph's history data, thus the filtering feature of the MQTT gateway is essential there.

@bam80 bam80 changed the title filter out advertisement duplicates [feature request] filter out advertisement duplicates Dec 25, 2023
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

No branches or pull requests

1 participant