{"action":"created","issue":{"url":"https://api.github.com/repos/RedBearLab/nRF51822-Arduino/issues/63","repository_url":"https://api.github.com/repos/RedBearLab/nRF51822-Arduino","labels_url":"https://api.github.com/repos/RedBearLab/nRF51822-Arduino/issues/63/labels{/name}","comments_url":"https://api.github.com/repos/RedBearLab/nRF51822-Arduino/issues/63/comments","events_url":"https://api.github.com/repos/RedBearLab/nRF51822-Arduino/issues/63/events","html_url":"https://github.com/RedBearLab/nRF51822-Arduino/issues/63","id":157332003,"number":63,"title":"SCAN REPORT don't decode the full name","user":{"login":"gaucho1978","id":7407032,"avatar_url":"https://avatars.githubusercontent.com/u/7407032?v=3","gravatar_id":"","url":"https://api.github.com/users/gaucho1978","html_url":"https://github.com/gaucho1978","followers_url":"https://api.github.com/users/gaucho1978/followers","following_url":"https://api.github.com/users/gaucho1978/following{/other_user}","gists_url":"https://api.github.com/users/gaucho1978/gists{/gist_id}","starred_url":"https://api.github.com/users/gaucho1978/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gaucho1978/subscriptions","organizations_url":"https://api.github.com/users/gaucho1978/orgs","repos_url":"https://api.github.com/users/gaucho1978/repos","events_url":"https://api.github.com/users/gaucho1978/events{/privacy}","received_events_url":"https://api.github.com/users/gaucho1978/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":15,"created_at":"2016-05-28T10:24:04Z","updated_at":"2016-06-07T02:47:25Z","closed_at":null,"body":"on nRF51822-Arduino repository there is a bug in the scan callback.\r\n\r\nIn the \"scan as master role\" example of this repository you use \"ble.startScan(scanCallBack)\" to start the scanning.\r\nthe result data is obtained in the array \"const Gap::AdvertisementCallbackParams_t *params\"\r\n\r\nif you use a heart rate sensor you will find that the raw inquiry response of the GAT is bigger than 18 bytes (36bytes in my heart rate sensor), but the length of the obtained data is only 18 bytes.\r\n\r\nrunning the scanner example and adding some prints to the \"ble_advdata_parser\" function,  you will find that you will be able to decode the inquiry response correctly, but the last field is not included in the raw response data, so the loop on the \"ble_advdata_parser\" function will not be able to decode the last field. Last field in my case is the name of the bluetooth peripherial (Hearth rate sensor). \r\nYou are cutting somewhere the bluetooth raw device response.\r\nI verified the raw device response with a tablet and a Nordic app.\r\n\r\ni would like to to some more research but may be you can solve faster the problem knowing better than me the source code."},"comment":{"url":"https://api.github.com/repos/RedBearLab/nRF51822-Arduino/issues/comments/224153521","html_url":"https://github.com/RedBearLab/nRF51822-Arduino/issues/63#issuecomment-224153521","issue_url":"https://api.github.com/repos/RedBearLab/nRF51822-Arduino/issues/63","id":224153521,"user":{"login":"zoujixing","id":8381015,"avatar_url":"https://avatars.githubusercontent.com/u/8381015?v=3","gravatar_id":"","url":"https://api.github.com/users/zoujixing","html_url":"https://github.com/zoujixing","followers_url":"https://api.github.com/users/zoujixing/followers","following_url":"https://api.github.com/users/zoujixing/following{/other_user}","gists_url":"https://api.github.com/users/zoujixing/gists{/gist_id}","starred_url":"https://api.github.com/users/zoujixing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zoujixing/subscriptions","organizations_url":"https://api.github.com/users/zoujixing/orgs","repos_url":"https://api.github.com/users/zoujixing/repos","events_url":"https://api.github.com/users/zoujixing/events{/privacy}","received_events_url":"https://api.github.com/users/zoujixing/received_events","type":"User","site_admin":false},"created_at":"2016-06-07T02:47:25Z","updated_at":"2016-06-07T02:47:25Z","body":"Hi gaucho,\r\nGood point! We will add this to next version.Thanks very much!"}}
{"actor":{"display_login":"zoujixing"}}