{"action":"created","issue":{"url":"https://api.github.com/repos/WebBluetoothCG/web-bluetooth/issues/253","repository_url":"https://api.github.com/repos/WebBluetoothCG/web-bluetooth","labels_url":"https://api.github.com/repos/WebBluetoothCG/web-bluetooth/issues/253/labels{/name}","comments_url":"https://api.github.com/repos/WebBluetoothCG/web-bluetooth/issues/253/comments","events_url":"https://api.github.com/repos/WebBluetoothCG/web-bluetooth/issues/253/events","html_url":"https://github.com/WebBluetoothCG/web-bluetooth/issues/253","id":167622188,"number":253,"title":"Add a \"connectable\" field to BluetoothDevice","user":{"login":"jracle","id":7260613,"avatar_url":"https://avatars.githubusercontent.com/u/7260613?v=3","gravatar_id":"","url":"https://api.github.com/users/jracle","html_url":"https://github.com/jracle","followers_url":"https://api.github.com/users/jracle/followers","following_url":"https://api.github.com/users/jracle/following{/other_user}","gists_url":"https://api.github.com/users/jracle/gists{/gist_id}","starred_url":"https://api.github.com/users/jracle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jracle/subscriptions","organizations_url":"https://api.github.com/users/jracle/orgs","repos_url":"https://api.github.com/users/jracle/repos","events_url":"https://api.github.com/users/jracle/events{/privacy}","received_events_url":"https://api.github.com/users/jracle/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-26T14:31:17Z","updated_at":"2016-07-27T22:22:29Z","closed_at":null,"body":"As @beaufortfrancois suggests (following @Vudentz remark) in pull-request #239 , it would be valuable to add a `boolean connectable` member to `BluetoothDevice`.\r\n\r\nInstances of `BluetoothDevice` return by a _regular_ `requestLEScan` (the one without explicitly filtering out connectable devices) have no hint whether or not we can connect to their GATT server.\r\n\r\nOnce we get device from `requestDevice`, such a `BluetoothDevice` instance would also hold same `boolean connectable` member. Subsequent call to `.gatt.connect()` would fail if `connectable` is `false`.\r\n\r\n..oh and I already acknowledge I'll be opposed the fact that we can pre-filter devices (see #243)"},"comment":{"url":"https://api.github.com/repos/WebBluetoothCG/web-bluetooth/issues/comments/235739914","html_url":"https://github.com/WebBluetoothCG/web-bluetooth/issues/253#issuecomment-235739914","issue_url":"https://api.github.com/repos/WebBluetoothCG/web-bluetooth/issues/253","id":235739914,"user":{"login":"jyasskin","id":83420,"avatar_url":"https://avatars.githubusercontent.com/u/83420?v=3","gravatar_id":"","url":"https://api.github.com/users/jyasskin","html_url":"https://github.com/jyasskin","followers_url":"https://api.github.com/users/jyasskin/followers","following_url":"https://api.github.com/users/jyasskin/following{/other_user}","gists_url":"https://api.github.com/users/jyasskin/gists{/gist_id}","starred_url":"https://api.github.com/users/jyasskin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jyasskin/subscriptions","organizations_url":"https://api.github.com/users/jyasskin/orgs","repos_url":"https://api.github.com/users/jyasskin/repos","events_url":"https://api.github.com/users/jyasskin/events{/privacy}","received_events_url":"https://api.github.com/users/jyasskin/received_events","type":"User","site_admin":false},"created_at":"2016-07-27T22:22:29Z","updated_at":"2016-07-27T22:22:29Z","body":"What should BluetoothDevice.connectable return on Android, where we don't know if a device is sending connectable advertisements? I think we could leave it `false` or allow it to be `null`.\r\n\r\nAlso, what do you mean by \"be opposed the fact that we can pre-filter devices\"?"}}
{"actor":{"display_login":"jyasskin"}}