googlearchive / platinum-bluetooth

A set of Polymer elements to discover and communicate with nearby Bluetooth devices
https://elements.polymer-project.org/elements/platinum-bluetooth
Apache License 2.0
22 stars 13 forks source link

Missing acceptAllDevices option #28

Open tekreme73 opened 7 years ago

tekreme73 commented 7 years ago

Request description

Add the acceptAllDevices property to match the Bluetooth spec

dictionary RequestDeviceOptions {
  sequence<BluetoothLEScanFilterInit> filters;
  sequence<BluetoothServiceUUID> optionalServices = [];
  boolean acceptAllDevices = false;
};

Bluetooth Spec

Example

<platinum-bluetooth-device accept-all-devices optional-services='["batteryService"]'>
 </platinum-bluetooth-device>

or

<platinum-bluetooth-device accept-all-devices="true|false" optional-services='["batteryService"]'>
 </platinum-bluetooth-device>