{"action":"created","issue":{"url":"https://api.github.com/repos/WebBluetoothCG/web-bluetooth/issues/145","labels_url":"https://api.github.com/repos/WebBluetoothCG/web-bluetooth/issues/145/labels{/name}","comments_url":"https://api.github.com/repos/WebBluetoothCG/web-bluetooth/issues/145/comments","events_url":"https://api.github.com/repos/WebBluetoothCG/web-bluetooth/issues/145/events","html_url":"https://github.com/WebBluetoothCG/web-bluetooth/issues/145","id":97137147,"number":145,"title":"Code example malformed.","user":{"login":"carybran","id":903491,"avatar_url":"https://avatars.githubusercontent.com/u/903491?v=3","gravatar_id":"","url":"https://api.github.com/users/carybran","html_url":"https://github.com/carybran","followers_url":"https://api.github.com/users/carybran/followers","following_url":"https://api.github.com/users/carybran/following{/other_user}","gists_url":"https://api.github.com/users/carybran/gists{/gist_id}","starred_url":"https://api.github.com/users/carybran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carybran/subscriptions","organizations_url":"https://api.github.com/users/carybran/orgs","repos_url":"https://api.github.com/users/carybran/repos","events_url":"https://api.github.com/users/carybran/events{/privacy}","received_events_url":"https://api.github.com/users/carybran/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-07-24T20:12:36Z","updated_at":"2015-07-24T20:34:29Z","closed_at":null,"body":"Hi - tested this with U2F work we are doing and was able to successfully see the authenticator!\r\n\r\nFound issue in documentation with the request device call:\r\n\r\nnavigator.bluetooth.requestDevice({\r\n  filters: [{\r\n    services: [0x1234, 0x12345678, '99999999-0000-1000-8000-00805f9b34fb'],\r\n  }]\r\n.then(device => {...})\r\n.catch(error => { console.log(error); });\r\n\r\nShould be:\r\n\r\nnavigator.bluetooth.requestDevice({\r\n  filters: [{\r\n    services: [0x1234, 0x12345678, '99999999-0000-1000-8000-00805f9b34fb'],\r\n  }]})  <===== ADDED closing braces\r\n.then(device => {...})\r\n.catch(error => { console.log(error); });"},"comment":{"url":"https://api.github.com/repos/WebBluetoothCG/web-bluetooth/issues/comments/124713288","html_url":"https://github.com/WebBluetoothCG/web-bluetooth/issues/145#issuecomment-124713288","issue_url":"https://api.github.com/repos/WebBluetoothCG/web-bluetooth/issues/145","id":124713288,"user":{"login":"carybran","id":903491,"avatar_url":"https://avatars.githubusercontent.com/u/903491?v=3","gravatar_id":"","url":"https://api.github.com/users/carybran","html_url":"https://github.com/carybran","followers_url":"https://api.github.com/users/carybran/followers","following_url":"https://api.github.com/users/carybran/following{/other_user}","gists_url":"https://api.github.com/users/carybran/gists{/gist_id}","starred_url":"https://api.github.com/users/carybran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carybran/subscriptions","organizations_url":"https://api.github.com/users/carybran/orgs","repos_url":"https://api.github.com/users/carybran/repos","events_url":"https://api.github.com/users/carybran/events{/privacy}","received_events_url":"https://api.github.com/users/carybran/received_events","type":"User","site_admin":false},"created_at":"2015-07-24T20:34:29Z","updated_at":"2015-07-24T20:34:29Z","body":"Thank you - That is what I heard too - I am just testing with an early version of the U2F GATT service to see if I could actually communicate with the device using the new API.  "}}