Implements BLE manufacturer data-feature to only scan for properly initialised LEGO BOOST Move Hubs

This commit is contained in:
Kevin Andersen 2019-07-11 17:23:59 -04:00
parent cc04fb0994
commit f4e34131e3

View file

@ -800,13 +800,13 @@ class Boost {
} }
this._ble = new BLE(this._runtime, this._extensionId, { this._ble = new BLE(this._runtime, this._extensionId, {
filters: [{ filters: [{
services: [BoostBLE.service]/* , services: [BoostBLE.service],
manufacturerData: { manufacturerData: {
0: { 0: {
dataPrefix: [0x97, 0x03, 0x00, 0x40], dataPrefix: [0x97, 0x03, 0x00, 0x40],
mask: [0xFF, 0xFF, 0, 0xFF] mask: [0xFF, 0xFF, 0, 0xFF]
} }
} commented out until feature is enabled in scratch-link */ }
}], }],
optionalServices: [] optionalServices: []
}, this._onConnect, this.reset); }, this._onConnect, this.reset);