edrosten / libblepp

Modern clean C++ Bluetooth Low Energy on Linux without the Bluez DBUS API
Other
241 stars 63 forks source link

added raw packet to advertisement, needed for beacons major and minor. #35

Closed ebostijancic closed 6 years ago

ebostijancic commented 6 years ago

Parsing beacon advertisements were not complete as the major and minor could not be found anywhere. I have added the raw packet information into the AdvertisingResponse.

edrosten commented 6 years ago

Out of interest does the data also end up in the unparsed data field, or one of the others?

ebostijancic commented 6 years ago

No, I tried to be backwards compatible and therefore did not change any data structure.

edrosten commented 6 years ago

I meant I was wondering if the data was present in one of the existing fields. There are a couple of containers for holding bytes from various bits of the packet. Not sure though I've not looked at advertising packets in some time.