OpenBluetoothToolbox / SimpleBLE

SimpleBLE - the all-in-one Bluetooth library for MacOS, iOS, Windows, Linux and Android.
https://www.simpleble.org
Other
655 stars 110 forks source link

Manufacturer data is captured then removed when scanning #269

Open RomaniukRobert opened 10 months ago

RomaniukRobert commented 10 months ago

Hello. I have discovered that while scanning first manufacturer data is parsed and stored in the map PeripheralBase::manufacturerdata but then in update_advertising_data it is ovewritten with empty data. I suggest to apply fix:

void PeripheralBase::update_advertising_data(advertising_data_t advertising_data) { ..... manufacturerdata.insert(advertising_data.manufacturer_data.begin(), advertising_data.manufacturer_data.end()); ... } it helped in my case

KlemenDEV commented 9 months ago

Could this be related? https://github.com/OpenBluetoothToolbox/SimpleBLE/issues/267