{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/pxt-microbit/issues/127","repository_url":"https://api.github.com/repos/Microsoft/pxt-microbit","labels_url":"https://api.github.com/repos/Microsoft/pxt-microbit/issues/127/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/pxt-microbit/issues/127/comments","events_url":"https://api.github.com/repos/Microsoft/pxt-microbit/issues/127/events","html_url":"https://github.com/Microsoft/pxt-microbit/issues/127","id":160442709,"number":127,"title":"Bluetooth GATT table size needs to be set according to the Bluetooth services selected","user":{"login":"bluetooth-mdw","id":8341666,"avatar_url":"https://avatars.githubusercontent.com/u/8341666?v=3","gravatar_id":"","url":"https://api.github.com/users/bluetooth-mdw","html_url":"https://github.com/bluetooth-mdw","followers_url":"https://api.github.com/users/bluetooth-mdw/followers","following_url":"https://api.github.com/users/bluetooth-mdw/following{/other_user}","gists_url":"https://api.github.com/users/bluetooth-mdw/gists{/gist_id}","starred_url":"https://api.github.com/users/bluetooth-mdw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bluetooth-mdw/subscriptions","organizations_url":"https://api.github.com/users/bluetooth-mdw/orgs","repos_url":"https://api.github.com/users/bluetooth-mdw/repos","events_url":"https://api.github.com/users/bluetooth-mdw/events{/privacy}","received_events_url":"https://api.github.com/users/bluetooth-mdw/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Microsoft/pxt-microbit/labels/BLE","name":"BLE","color":"d4c5f9"},{"url":"https://api.github.com/repos/Microsoft/pxt-microbit/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/Microsoft/pxt-microbit/milestones/2","html_url":"https://github.com/Microsoft/pxt-microbit/milestones/Bluetooth","labels_url":"https://api.github.com/repos/Microsoft/pxt-microbit/milestones/2/labels","id":1826720,"number":2,"title":"Bluetooth","description":"","creator":{"login":"tballmsft","id":10767146,"avatar_url":"https://avatars.githubusercontent.com/u/10767146?v=3","gravatar_id":"","url":"https://api.github.com/users/tballmsft","html_url":"https://github.com/tballmsft","followers_url":"https://api.github.com/users/tballmsft/followers","following_url":"https://api.github.com/users/tballmsft/following{/other_user}","gists_url":"https://api.github.com/users/tballmsft/gists{/gist_id}","starred_url":"https://api.github.com/users/tballmsft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tballmsft/subscriptions","organizations_url":"https://api.github.com/users/tballmsft/orgs","repos_url":"https://api.github.com/users/tballmsft/repos","events_url":"https://api.github.com/users/tballmsft/events{/privacy}","received_events_url":"https://api.github.com/users/tballmsft/received_events","type":"User","site_admin":false},"open_issues":4,"closed_issues":11,"state":"open","created_at":"2016-06-14T14:44:06Z","updated_at":"2016-10-14T21:51:14Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2016-06-15T14:53:45Z","updated_at":"2016-10-14T21:51:14Z","closed_at":"2016-10-14T21:51:14Z","body":"Hi, I just tested this:\r\n\r\n```\r\nbluetooth.startAccelerometerService();\r\nbluetooth.startIOPinService();\r\nbluetooth.startLEDService();\r\nbluetooth.startTemperatureService();\r\nbluetooth.startMagnetometerService();\r\nbluetooth.startButtonService();\r\nbasic.showString(\"IO PIN\");\r\n```\r\n\r\nOnly three custom services were visible when I ran the resultant hex file and one service I checked had missing characteristics. This is a sure sign of the GATT table being insufficiently large as set in config.json:\r\n\r\n```\r\n        \"gatt_table_size\": \"0x700\",\r\n```\r\n\r\nNote that 0x700 is the largest value allowed (range is between 0x300 and 0x700).\r\n\r\nAs mentioned I've suggested a way of letting the DAL figure out its GATT table size and set it dynamically. Joe F is considering this.\r\n\r\nUntil then and at least while we're testing, maybe you should use the max 0x700 value whenever a Bluetooth service block is included? Just a thought....\r\n\r\nCheers\r\n\r\nMartin"},"comment":{"url":"https://api.github.com/repos/Microsoft/pxt-microbit/issues/comments/253928399","html_url":"https://github.com/Microsoft/pxt-microbit/issues/127#issuecomment-253928399","issue_url":"https://api.github.com/repos/Microsoft/pxt-microbit/issues/127","id":253928399,"user":{"login":"abchatra","id":6107272,"avatar_url":"https://avatars.githubusercontent.com/u/6107272?v=3","gravatar_id":"","url":"https://api.github.com/users/abchatra","html_url":"https://github.com/abchatra","followers_url":"https://api.github.com/users/abchatra/followers","following_url":"https://api.github.com/users/abchatra/following{/other_user}","gists_url":"https://api.github.com/users/abchatra/gists{/gist_id}","starred_url":"https://api.github.com/users/abchatra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abchatra/subscriptions","organizations_url":"https://api.github.com/users/abchatra/orgs","repos_url":"https://api.github.com/users/abchatra/repos","events_url":"https://api.github.com/users/abchatra/events{/privacy}","received_events_url":"https://api.github.com/users/abchatra/received_events","type":"User","site_admin":false},"created_at":"2016-10-14T21:51:14Z","updated_at":"2016-10-14T21:51:14Z","body":"Closing this issue as there is no traction here. "}}
{"actor":{"display_login":"abchatra"}}