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
Copy file name to clipboardExpand all lines: README.md
+9Lines changed: 9 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -935,6 +935,15 @@ Stop listening to the changes of the value of a characteristic. For an example,
935
935
|**`optionalServices`**| <code>string[]</code> | For **web**, all services that will be used have to be listed under services or optionalServices, e.g. [numberToUUID(0x180f)] (see [UUID format](#uuid-format)) |
936
936
|**`allowDuplicates`**| <code>boolean</code> | Normally scans will discard the second and subsequent advertisements from a single device. If you need to receive them, set allowDuplicates to true (only applicable in `requestLEScan`). (default: false) |
|**`manufacturerData`**| <code>ManufacturerDataFilter[]</code> | Allow scanning for devices with a specific manufacturer data https://developer.mozilla.org/en-US/docs/Web/API/Bluetooth/requestDevice#manufacturerdata|
|**`companyIdentifier`**| <code>number</code> | Company ID (sometimes called the manufacturer ID) to search for in the manufacturer data field. |
945
+
|**`dataPrefix`**| <code><ahref="#uint8array">Uint8Array</a></code> | Prefix to match in the manufacturer data field. On **Android** this field is mandatory. |
946
+
|**`mask`**| <code><ahref="#uint8array">Uint8Array</a></code> | Set filter on partial manufacture data. For any bit in the mask, set it the 1 if it needs to match the one in manufacturer data, otherwise set it to 0. The `mask` must have the same length of dataPrefix. |
* Company ID (sometimes called the manufacturer ID) to search for in the manufacturer data field.
101
+
*/
102
+
companyIdentifier: number;
103
+
104
+
/**
105
+
* Prefix to match in the manufacturer data field.
106
+
* On **Android** this field is mandatory.
107
+
*/
108
+
dataPrefix?: Uint8Array;
109
+
110
+
/**
111
+
* Set filter on partial manufacture data. For any bit in the mask, set it the 1 if it needs to match the one in manufacturer data, otherwise set it to 0.
112
+
* The `mask` must have the same length of dataPrefix.
113
+
*/
114
+
mask?: Uint8Array;
115
+
}
116
+
98
117
exportinterfaceBleDevice{
99
118
/**
100
119
* ID of the device, which will be needed for further calls.
0 commit comments