-
Notifications
You must be signed in to change notification settings - Fork 217
Please allow access to raw / custom advertisement data (with code) #123
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
Comments
Apologies. Two changes:
BLEDevice.cpp
|
Hi @tarheele , I understand your needs. |
i'm also interested in accessing the raw advertisement data. i am working with a ruuvi tag which is broadcasting sensor data in the same way. seems to be a common use case. |
hi @polldo do you know, when the feature will be available? I also would like to read ruuvi advertising data. |
Uh oh!
There was an error while loading. Please reload this page.
Per discussion on the Nano 33 IoT board , I needed access to the raw advertisement data to obtain data from a sensor which embeds the data in that advertisement.
Please consider adding the getAdvertisement() accessor below. Alternately, you could implement access to types within the advertisement like you do access to localName().
I am grateful for AndroidBLE and think this would solve problems which others face also.
BLEDevice.h
int getAdvertisement(uint8_t value[], int length);
BLEDevice.cpp (modified to fix copy/paste error and to check incoming buffer size)
Usage Output
Usage Code
The text was updated successfully, but these errors were encountered: