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
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