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

How to get the BLE advertisement (GAP) scanrecord in Xamarin with Monkey.Robotics to extract additional information to the device name? #49

Open
l00mi opened this issue Jun 25, 2015 · 5 comments

Comments

@l00mi
Copy link

l00mi commented Jun 25, 2015

We like to know if there is a way to get to the full payload of the GAP advertisement?

See also Stackoverflow Question.

@fburel
Copy link

fburel commented Jul 9, 2015

Hi, I managed to do that, unfortunatly I wrote it only for the android part so far because android return the raw bytes whereas Apple return a (weirdly) structured dictionnary.
For Android, it's quite fair simple, modify the DeviceDiscoveredEventArg to include 2 more property (the rssi and the scanRecord). and the in the platform specific Adapter class, inside the OnLeScan(..) methode add the rssi and the scanRecord in the eventArg before sending it.
For iOS, I'm still missing the way to get the raw byte[] scanRecord

@l00mi
Copy link
Author

l00mi commented Jul 9, 2015

Thanks for the hint!
This can be done with the binaries available or do I need to rebuild the Monkey.Robotics lib?

@fburel
Copy link

fburel commented Jul 9, 2015

No, you need to use the code from github unfortunatly

@l00mi
Copy link
Author

l00mi commented Jul 9, 2015

Okay, thanks a lot for the hints!

@fburel
Copy link

fburel commented Jul 9, 2015

your welcome, if you figure out a way to do this with ios, I'm all ears :)

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

2 participants