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

Request: on-disconnected event for platinum-bluetooth-device #24

Open ketile opened 7 years ago

ketile commented 7 years ago

Request description

Expose on-disconnected event for <platinum-bluetooth-device>. The user should be able to specify a handler for the gattserverdisconnected event when using the element. This would work similarly as the on-value-changed event for <platinum-bluetooth-characteristic>.

Example

 <platinum-bluetooth-device services-filter='["batteryService"]' on-disconnected='myHandler'>
 </platinum-bluetooth-device>
beaufortfrancois commented 7 years ago

Good idea!

beaufortfrancois commented 7 years ago

What do you think of https://github.com/PolymerElements/platinum-bluetooth/pull/25 @ketile?

ketile commented 7 years ago

That seems perfect @beaufortfrancois. Thank you.