{"action":"created","issue":{"url":"https://api.github.com/repos/sandeepmistry/bleno/issues/240","repository_url":"https://api.github.com/repos/sandeepmistry/bleno","labels_url":"https://api.github.com/repos/sandeepmistry/bleno/issues/240/labels{/name}","comments_url":"https://api.github.com/repos/sandeepmistry/bleno/issues/240/comments","events_url":"https://api.github.com/repos/sandeepmistry/bleno/issues/240/events","html_url":"https://github.com/sandeepmistry/bleno/issues/240","id":186291908,"number":240,"title":"Discovery of services and characteristics on iPhone does not work","user":{"login":"Cheesebaron","id":249719,"avatar_url":"https://avatars.githubusercontent.com/u/249719?v=3","gravatar_id":"","url":"https://api.github.com/users/Cheesebaron","html_url":"https://github.com/Cheesebaron","followers_url":"https://api.github.com/users/Cheesebaron/followers","following_url":"https://api.github.com/users/Cheesebaron/following{/other_user}","gists_url":"https://api.github.com/users/Cheesebaron/gists{/gist_id}","starred_url":"https://api.github.com/users/Cheesebaron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Cheesebaron/subscriptions","organizations_url":"https://api.github.com/users/Cheesebaron/orgs","repos_url":"https://api.github.com/users/Cheesebaron/repos","events_url":"https://api.github.com/users/Cheesebaron/events{/privacy}","received_events_url":"https://api.github.com/users/Cheesebaron/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2016-10-31T14:06:55Z","updated_at":"2016-11-20T17:00:19Z","closed_at":null,"body":"I have made an interface with 6 services, one of them being the Device Information service.\r\n\r\nI have 23 characteristics split over the 6 services, the service with the most characteristics has 8 of them.\r\n\r\nAndroid devices, which typically report an MTU of 23 discover all services and characteristics fine. If I use an iPhone 6, which appears with MTU 185, no services or characteristics show up.\r\n\r\nA collegue of mine messed around a bit inside of [gatt.js](https://github.com/sandeepmistry/bleno/blob/master/lib/hci-socket/gatt.js), where he discovered when setting `numServices` and `numCharacteristics` to 1\r\n\r\nHere\r\nhttps://github.com/sandeepmistry/bleno/blob/master/lib/hci-socket/gatt.js#L559\r\n\r\nand here\r\nhttps://github.com/sandeepmistry/bleno/blob/master/lib/hci-socket/gatt.js#L615\r\n\r\nthen the services and characteristics show up fine. This is similar to fooling the bleno to think the device connects with a different MTU.\r\n\r\nWhy is it that devices with high MTU won't discover any of my services and characteristics?"},"comment":{"url":"https://api.github.com/repos/sandeepmistry/bleno/issues/comments/261790154","html_url":"https://github.com/sandeepmistry/bleno/issues/240#issuecomment-261790154","issue_url":"https://api.github.com/repos/sandeepmistry/bleno/issues/240","id":261790154,"user":{"login":"Cheesebaron","id":249719,"avatar_url":"https://avatars.githubusercontent.com/u/249719?v=3","gravatar_id":"","url":"https://api.github.com/users/Cheesebaron","html_url":"https://github.com/Cheesebaron","followers_url":"https://api.github.com/users/Cheesebaron/followers","following_url":"https://api.github.com/users/Cheesebaron/following{/other_user}","gists_url":"https://api.github.com/users/Cheesebaron/gists{/gist_id}","starred_url":"https://api.github.com/users/Cheesebaron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Cheesebaron/subscriptions","organizations_url":"https://api.github.com/users/Cheesebaron/orgs","repos_url":"https://api.github.com/users/Cheesebaron/repos","events_url":"https://api.github.com/users/Cheesebaron/events{/privacy}","received_events_url":"https://api.github.com/users/Cheesebaron/received_events","type":"User","site_admin":false},"created_at":"2016-11-20T17:00:19Z","updated_at":"2016-11-20T17:00:19Z","body":"Yeah it is detected correctly. I just messed up the console.log. So I get 2 in onReadLocalVersion too.\r\n\r\nI'll make a Pull Request. Are you sure it is OK to just assume that all Intel Bluetooth cards have this problem? Just like you've done with the Realtek ones?"}}
{"actor":{"display_login":"Cheesebaron"}}