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

set scan paramaters? #26

Open
mantisedu opened this issue Mar 23, 2023 · 0 comments
Open

set scan paramaters? #26

mantisedu opened this issue Mar 23, 2023 · 0 comments

Comments

@mantisedu
Copy link

Hi @hashtagchris. it is possible to set the scan parmaters as defined

In BlueZ there is this struct:

https://github.com/pauloborges/bluez/blob/master/lib/hci.h#L1536

typedef struct {
uint8_t type;
uint16_t interval;
uint16_t window;
uint8_t own_bdaddr_type;
uint8_t filter;
} attribute ((packed)) le_set_scan_parameters_cp;

I'm using my program as a beacon scanner and i need a way to scan faster as currently i'm missing a lof of packets with the default scan interval and window on a Pi Zero. I don't need to connect to any devices and i'm looking for a way to set the program to scan as fast as possible, while gaining access to the Manufactuer Data in the Advertising Packet.

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