You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[YES ] I checked the documentation and found no answer
[YES ] I checked to make sure that this issue has not already been filed - I have found another similar issue but it is not my case: manufacturerData always null #346
Expected Behavior
manufacturerData should not be null, regardless. When scanning for peripherals, then reading their manufacturerData, I expect it not to be null.
Current Behavior
When allowDuplicates scanOption is true, startDeviceScan will return multiple peripherals records of the same pheripheral and sometimes the first record will have manufacturerData null, which means ble-plx returns a peripheral on scanOption before getting initial scan response from peripheral causing manufacturerData to be empty.
Steps to Reproduce
Scan for peripherals (startDeviceScan with allowDuplicates true)
While scanning, read manufacturerData of first peripheral record
The text was updated successfully, but these errors were encountered:
This can happen. Very often advertisement data is split into two packages and OS may report both of them after another without merging them. I'm talking about ADV_IND and SCAN_RSP. What you can do on firmware side is to make sure that manufacturer data is moved to the first packet ADV_IND and move less important advertisement data to the second one.
Another option is to wait for last record as you mentioned. It should have merged properties.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Prerequisites
Expected Behavior
manufacturerData should not be null, regardless. When scanning for peripherals, then reading their manufacturerData, I expect it not to be null.
Current Behavior
When allowDuplicates scanOption is true, startDeviceScan will return multiple peripherals records of the same pheripheral and sometimes the first record will have manufacturerData null, which means ble-plx returns a peripheral on scanOption before getting initial scan response from peripheral causing manufacturerData to be empty.
Steps to Reproduce
The text was updated successfully, but these errors were encountered: