-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Manufacturer Specific Data
From the spec:
The Manufacturer Specific data type is used for manufacturer specific data. The first two data octets shall contain a company identifier code from the Assigned Numbers - Company Identifiers document. The interpretation of any other octets within the data shall be defined by the manufacturer specified by the company identifier
If the device is advertising MSD in both an advertising packet AND the scan response, Android and iOS behave differently:
As of iOS 9, the two fields are concatenated and provide all the data from the device. (from this post)
Note: Unfortunately, iOS does not allow access to the raw bytes of the scan record. If this was the case, all parsing would be performed Dart-side.
As of Android 21, the multiple instances of MSD are parsed separately and can be accessed with ScanRecord#getManufacturerSpecificData()