{"action":"closed","issue":{"url":"https://api.github.com/repos/currantlabs/ble/issues/7","repository_url":"https://api.github.com/repos/currantlabs/ble","labels_url":"https://api.github.com/repos/currantlabs/ble/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/currantlabs/ble/issues/7/comments","events_url":"https://api.github.com/repos/currantlabs/ble/issues/7/events","html_url":"https://github.com/currantlabs/ble/issues/7","id":163361593,"number":7,"title":"linux: Unable to subscribe to GATT characteristic","user":{"login":"deadprogram","id":5520,"avatar_url":"https://avatars.githubusercontent.com/u/5520?v=3","gravatar_id":"","url":"https://api.github.com/users/deadprogram","html_url":"https://github.com/deadprogram","followers_url":"https://api.github.com/users/deadprogram/followers","following_url":"https://api.github.com/users/deadprogram/following{/other_user}","gists_url":"https://api.github.com/users/deadprogram/gists{/gist_id}","starred_url":"https://api.github.com/users/deadprogram/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deadprogram/subscriptions","organizations_url":"https://api.github.com/users/deadprogram/orgs","repos_url":"https://api.github.com/users/deadprogram/repos","events_url":"https://api.github.com/users/deadprogram/events{/privacy}","received_events_url":"https://api.github.com/users/deadprogram/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":14,"created_at":"2016-07-01T09:57:39Z","updated_at":"2017-01-14T12:15:53Z","closed_at":"2017-01-14T12:15:53Z","body":"Hi, @roylee17 \n\nI have been testing this package with a WICED Sense device on Ubuntu 14.04. I was able to scan, and explore with no problems thus far. I then tried to subscribe to notifications, and received an error `unexpected EOF`.\n\n```\n$ sudo ./bin/explorer --name=\"WICED Sense Kit\" --sub=\"10s\"\n2016/07/01 11:34:23 dev: hci0 up\n2016/07/01 11:34:23 dev: hci0 reset\n2016/07/01 11:34:23 dev: hci0 down\n2016/07/01 11:34:23 dev: hci0 opened\nExploring Peripheral [ 20:73:77:65:43:21 ] ...\nService: 1801 Generic Attribute\n\nService: 1800 Generic Access\n  Characteristic: 2A00, Property: 0x02, Device Name\n    Value         57494345442053656e7365204b697400 | \"WICED Sense Kit\\x00\"\n  Characteristic: 2A01, Property: 0x02, Appearance\n    Value         0002 | \"\\x00\\x02\"\n\nService: 739298B687B64984A5DCBDC18B068985 \n  Characteristic: 33EF91133B55413EB553FEA1EAADA459, Property: 0x12, \n    Value         0000000000000000000000000000000000000000 | \"\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\"\n    Descriptor: 2902, Client Characteristic Configuration\n    Value         0000 | \"\\x00\\x00\"\n\n-- Subscribe to notification for 10s --\n2016/07/01 11:34:26 subscribe failed: unexpected EOF\n```\n\nIt appears that when the GATT client writes: \nhttps://github.com/currantlabs/ble/blob/master/linux/gatt/client.go#L273 \n\nthat when it calls the ATT client's Write: https://github.com/currantlabs/ble/blob/master/linux/att/client.go#L336\n\nthe sendReq function here https://github.com/currantlabs/ble/blob/master/linux/att/client.go#L350\n\nis returning the error from here: https://github.com/currantlabs/ble/blob/master/linux/att/client.go#L501\n\nPerhaps this is related to some specific value or behaviour of the WICED Sense device. I was able to run the explorer on a LightBlue bean on Linux, and did not have this particular error.\n"}}
{"actor":{"display_login":"deadprogram"}}