{"action":"created","comment":{"url":"https://api.github.com/repos/01org/corelibs-arduino101/pulls/comments/85965753","pull_request_review_id":6648758,"id":85965753,"diff_hunk":"@@ -0,0 +1,81 @@\n+\r\n+#include \"ArduinoBLE.h\"\r\n+#include \"BLEAttribute.h\"\r\n+#include \"BLECharacteristicImp.h\"\r\n+#include \"BLEProfileManager.h\"\r\n+\r\n+// LED pin\r\n+#define LED_PIN   13\r\n+\r\n+// create service\r\n+BLEService          ledService(\"19b10100e8f2537e4f6cd104768a1214\");\r\n+\r\n+BLECharacteristic   switchCharacteristic(\"19b10101e8f2537e4f6cd104768a1214\", BLERead | BLEWrite | BLENotify, 1);\r\n+\r\n+BLEDescriptor       switchDescriptor(\"2901\", \"switch\");\r\n+\r\n+void setup() {\r\n+    Serial.begin(115200);\r\n+    Serial.println(\"test---\");\r\n+    \r\n+    // set LED pin to output mode\r\n+    pinMode(LED_PIN, OUTPUT);\r\n+\r\n+    // begin initialization\r\n+    BLE.begin();\r\n+    Serial.println(BLE.address());\r\n+    \r\n+    // set advertised local name and service UUID\r\n+    BLE.setLocalName(\"LED\");\r\n+    BLE.setAdvertisedServiceUuid(ledService.uuid());\r\n+    \r\n+    // add service and characteristic\r\n+    BLE.addService(ledService);\r\n+    ledService.addCharacteristic(switchCharacteristic);\r\n+    switchCharacteristic.addDescriptor(switchDescriptor);\r\n+    unsigned char test = 1;\r\n+    switchCharacteristic.writeValue(&test,1);\r","path":"libraries/BLE/examples/notification/notification.ino","position":34,"original_position":37,"commit_id":"5b69b5a5e5fdaac9571ee07576d960fba1022eb2","original_commit_id":"5fc779bb58eca4a2fc48e26250f580df20a9958b","user":{"login":"SidLeung","id":15203260,"avatar_url":"https://avatars.githubusercontent.com/u/15203260?v=3","gravatar_id":"","url":"https://api.github.com/users/SidLeung","html_url":"https://github.com/SidLeung","followers_url":"https://api.github.com/users/SidLeung/followers","following_url":"https://api.github.com/users/SidLeung/following{/other_user}","gists_url":"https://api.github.com/users/SidLeung/gists{/gist_id}","starred_url":"https://api.github.com/users/SidLeung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SidLeung/subscriptions","organizations_url":"https://api.github.com/users/SidLeung/orgs","repos_url":"https://api.github.com/users/SidLeung/repos","events_url":"https://api.github.com/users/SidLeung/events{/privacy}","received_events_url":"https://api.github.com/users/SidLeung/received_events","type":"User","site_admin":false},"body":"Will be corrected.","created_at":"2016-11-01T16:30:05Z","updated_at":"2016-11-01T16:30:05Z","html_url":"https://github.com/01org/corelibs-arduino101/pull/337#discussion_r85965753","pull_request_url":"https://api.github.com/repos/01org/corelibs-arduino101/pulls/337","_links":{"self":{"href":"https://api.github.com/repos/01org/corelibs-arduino101/pulls/comments/85965753"},"html":{"href":"https://github.com/01org/corelibs-arduino101/pull/337#discussion_r85965753"},"pull_request":{"href":"https://api.github.com/repos/01org/corelibs-arduino101/pulls/337"}}},"pull_request":{"url":"https://api.github.com/repos/01org/corelibs-arduino101/pulls/337","id":91123458,"html_url":"https://github.com/01org/corelibs-arduino101/pull/337","diff_url":"https://github.com/01org/corelibs-arduino101/pull/337.diff","patch_url":"https://github.com/01org/corelibs-arduino101/pull/337.patch","issue_url":"https://api.github.com/repos/01org/corelibs-arduino101/issues/337","number":337,"state":"open","locked":false,"title":"New BLE API preview","user":{"login":"sgbihu","id":19296360,"avatar_url":"https://avatars.githubusercontent.com/u/19296360?v=3","gravatar_id":"","url":"https://api.github.com/users/sgbihu","html_url":"https://github.com/sgbihu","followers_url":"https://api.github.com/users/sgbihu/followers","following_url":"https://api.github.com/users/sgbihu/following{/other_user}","gists_url":"https://api.github.com/users/sgbihu/gists{/gist_id}","starred_url":"https://api.github.com/users/sgbihu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sgbihu/subscriptions","organizations_url":"https://api.github.com/users/sgbihu/orgs","repos_url":"https://api.github.com/users/sgbihu/repos","events_url":"https://api.github.com/users/sgbihu/events{/privacy}","received_events_url":"https://api.github.com/users/sgbihu/received_events","type":"User","site_admin":false},"body":"A preview version for Arduino BLE API. \nJust for test, please don't merge now.\n","created_at":"2016-10-27T02:34:31Z","updated_at":"2016-11-01T16:30:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e54045e29c41d36309a327af6a0eed40b04e7be3","assignee":{"login":"eriknyquist","id":6616775,"avatar_url":"https://avatars.githubusercontent.com/u/6616775?v=3","gravatar_id":"","url":"https://api.github.com/users/eriknyquist","html_url":"https://github.com/eriknyquist","followers_url":"https://api.github.com/users/eriknyquist/followers","following_url":"https://api.github.com/users/eriknyquist/following{/other_user}","gists_url":"https://api.github.com/users/eriknyquist/gists{/gist_id}","starred_url":"https://api.github.com/users/eriknyquist/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eriknyquist/subscriptions","organizations_url":"https://api.github.com/users/eriknyquist/orgs","repos_url":"https://api.github.com/users/eriknyquist/repos","events_url":"https://api.github.com/users/eriknyquist/events{/privacy}","received_events_url":"https://api.github.com/users/eriknyquist/received_events","type":"User","site_admin":false},"assignees":[{"login":"eriknyquist","id":6616775,"avatar_url":"https://avatars.githubusercontent.com/u/6616775?v=3","gravatar_id":"","url":"https://api.github.com/users/eriknyquist","html_url":"https://github.com/eriknyquist","followers_url":"https://api.github.com/users/eriknyquist/followers","following_url":"https://api.github.com/users/eriknyquist/following{/other_user}","gists_url":"https://api.github.com/users/eriknyquist/gists{/gist_id}","starred_url":"https://api.github.com/users/eriknyquist/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eriknyquist/subscriptions","organizations_url":"https://api.github.com/users/eriknyquist/orgs","repos_url":"https://api.github.com/users/eriknyquist/repos","events_url":"https://api.github.com/users/eriknyquist/events{/privacy}","received_events_url":"https://api.github.com/users/eriknyquist/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/01org/corelibs-arduino101/milestones/5","html_url":"https://github.com/01org/corelibs-arduino101/milestones/Deneb","labels_url":"https://api.github.com/repos/01org/corelibs-arduino101/milestones/5/labels","id":1903701,"number":5,"title":"Deneb","description":"","creator":{"login":"kitsunami","id":15161463,"avatar_url":"https://avatars.githubusercontent.com/u/15161463?v=3","gravatar_id":"","url":"https://api.github.com/users/kitsunami","html_url":"https://github.com/kitsunami","followers_url":"https://api.github.com/users/kitsunami/followers","following_url":"https://api.github.com/users/kitsunami/following{/other_user}","gists_url":"https://api.github.com/users/kitsunami/gists{/gist_id}","starred_url":"https://api.github.com/users/kitsunami/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kitsunami/subscriptions","organizations_url":"https://api.github.com/users/kitsunami/orgs","repos_url":"https://api.github.com/users/kitsunami/repos","events_url":"https://api.github.com/users/kitsunami/events{/privacy}","received_events_url":"https://api.github.com/users/kitsunami/received_events","type":"User","site_admin":false},"open_issues":17,"closed_issues":17,"state":"open","created_at":"2016-07-25T22:45:44Z","updated_at":"2016-10-31T22:02:47Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/01org/corelibs-arduino101/pulls/337/commits","review_comments_url":"https://api.github.com/repos/01org/corelibs-arduino101/pulls/337/comments","review_comment_url":"https://api.github.com/repos/01org/corelibs-arduino101/pulls/comments{/number}","comments_url":"https://api.github.com/repos/01org/corelibs-arduino101/issues/337/comments","statuses_url":"https://api.github.com/repos/01org/corelibs-arduino101/statuses/5b69b5a5e5fdaac9571ee07576d960fba1022eb2","head":{"label":"sgbihu:master","ref":"master","sha":"5b69b5a5e5fdaac9571ee07576d960fba1022eb2","user":{"login":"sgbihu","id":19296360,"avatar_url":"https://avatars.githubusercontent.com/u/19296360?v=3","gravatar_id":"","url":"https://api.github.com/users/sgbihu","html_url":"https://github.com/sgbihu","followers_url":"https://api.github.com/users/sgbihu/followers","following_url":"https://api.github.com/users/sgbihu/following{/other_user}","gists_url":"https://api.github.com/users/sgbihu/gists{/gist_id}","starred_url":"https://api.github.com/users/sgbihu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sgbihu/subscriptions","organizations_url":"https://api.github.com/users/sgbihu/orgs","repos_url":"https://api.github.com/users/sgbihu/repos","events_url":"https://api.github.com/users/sgbihu/events{/privacy}","received_events_url":"https://api.github.com/users/sgbihu/received_events","type":"User","site_admin":false},"repo":{"id":59728984,"name":"corelibs-arduino101","full_name":"sgbihu/corelibs-arduino101","owner":{"login":"sgbihu","id":19296360,"avatar_url":"https://avatars.githubusercontent.com/u/19296360?v=3","gravatar_id":"","url":"https://api.github.com/users/sgbihu","html_url":"https://github.com/sgbihu","followers_url":"https://api.github.com/users/sgbihu/followers","following_url":"https://api.github.com/users/sgbihu/following{/other_user}","gists_url":"https://api.github.com/users/sgbihu/gists{/gist_id}","starred_url":"https://api.github.com/users/sgbihu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sgbihu/subscriptions","organizations_url":"https://api.github.com/users/sgbihu/orgs","repos_url":"https://api.github.com/users/sgbihu/repos","events_url":"https://api.github.com/users/sgbihu/events{/privacy}","received_events_url":"https://api.github.com/users/sgbihu/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sgbihu/corelibs-arduino101","description":null,"fork":true,"url":"https://api.github.com/repos/sgbihu/corelibs-arduino101","forks_url":"https://api.github.com/repos/sgbihu/corelibs-arduino101/forks","keys_url":"https://api.github.com/repos/sgbihu/corelibs-arduino101/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sgbihu/corelibs-arduino101/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sgbihu/corelibs-arduino101/teams","hooks_url":"https://api.github.com/repos/sgbihu/corelibs-arduino101/hooks","issue_events_url":"https://api.github.com/repos/sgbihu/corelibs-arduino101/issues/events{/number}","events_url":"https://api.github.com/repos/sgbihu/corelibs-arduino101/events","assignees_url":"https://api.github.com/repos/sgbihu/corelibs-arduino101/assignees{/user}","branches_url":"https://api.github.com/repos/sgbihu/corelibs-arduino101/branches{/branch}","tags_url":"https://api.github.com/repos/sgbihu/corelibs-arduino101/tags","blobs_url":"https://api.github.com/repos/sgbihu/corelibs-arduino101/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sgbihu/corelibs-arduino101/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sgbihu/corelibs-arduino101/git/refs{/sha}","trees_url":"https://api.github.com/repos/sgbihu/corelibs-arduino101/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sgbihu/corelibs-arduino101/statuses/{sha}","languages_url":"https://api.github.com/repos/sgbihu/corelibs-arduino101/languages","stargazers_url":"https://api.github.com/repos/sgbihu/corelibs-arduino101/stargazers","contributors_url":"https://api.github.com/repos/sgbihu/corelibs-arduino101/contributors","subscribers_url":"https://api.github.com/repos/sgbihu/corelibs-arduino101/subscribers","subscription_url":"https://api.github.com/repos/sgbihu/corelibs-arduino101/subscription","commits_url":"https://api.github.com/repos/sgbihu/corelibs-arduino101/commits{/sha}","git_commits_url":"https://api.github.com/repos/sgbihu/corelibs-arduino101/git/commits{/sha}","comments_url":"https://api.github.com/repos/sgbihu/corelibs-arduino101/comments{/number}","issue_comment_url":"https://api.github.com/repos/sgbihu/corelibs-arduino101/issues/comments{/number}","contents_url":"https://api.github.com/repos/sgbihu/corelibs-arduino101/contents/{+path}","compare_url":"https://api.github.com/repos/sgbihu/corelibs-arduino101/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sgbihu/corelibs-arduino101/merges","archive_url":"https://api.github.com/repos/sgbihu/corelibs-arduino101/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sgbihu/corelibs-arduino101/downloads","issues_url":"https://api.github.com/repos/sgbihu/corelibs-arduino101/issues{/number}","pulls_url":"https://api.github.com/repos/sgbihu/corelibs-arduino101/pulls{/number}","milestones_url":"https://api.github.com/repos/sgbihu/corelibs-arduino101/milestones{/number}","notifications_url":"https://api.github.com/repos/sgbihu/corelibs-arduino101/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sgbihu/corelibs-arduino101/labels{/name}","releases_url":"https://api.github.com/repos/sgbihu/corelibs-arduino101/releases{/id}","deployments_url":"https://api.github.com/repos/sgbihu/corelibs-arduino101/deployments","created_at":"2016-05-26T07:21:09Z","updated_at":"2016-10-25T03:31:21Z","pushed_at":"2016-10-31T09:54:02Z","git_url":"git://github.com/sgbihu/corelibs-arduino101.git","ssh_url":"git@github.com:sgbihu/corelibs-arduino101.git","clone_url":"https://github.com/sgbihu/corelibs-arduino101.git","svn_url":"https://github.com/sgbihu/corelibs-arduino101","homepage":null,"size":3655,"stargazers_count":1,"watchers_count":1,"language":"C","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"01org:master","ref":"master","sha":"6ee828b737b4bd08dda78b0769bb9043c64d2c4c","user":{"login":"01org","id":1635439,"avatar_url":"https://avatars.githubusercontent.com/u/1635439?v=3","gravatar_id":"","url":"https://api.github.com/users/01org","html_url":"https://github.com/01org","followers_url":"https://api.github.com/users/01org/followers","following_url":"https://api.github.com/users/01org/following{/other_user}","gists_url":"https://api.github.com/users/01org/gists{/gist_id}","starred_url":"https://api.github.com/users/01org/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/01org/subscriptions","organizations_url":"https://api.github.com/users/01org/orgs","repos_url":"https://api.github.com/users/01org/repos","events_url":"https://api.github.com/users/01org/events{/privacy}","received_events_url":"https://api.github.com/users/01org/received_events","type":"Organization","site_admin":false},"repo":{"id":34078903,"name":"corelibs-arduino101","full_name":"01org/corelibs-arduino101","owner":{"login":"01org","id":1635439,"avatar_url":"https://avatars.githubusercontent.com/u/1635439?v=3","gravatar_id":"","url":"https://api.github.com/users/01org","html_url":"https://github.com/01org","followers_url":"https://api.github.com/users/01org/followers","following_url":"https://api.github.com/users/01org/following{/other_user}","gists_url":"https://api.github.com/users/01org/gists{/gist_id}","starred_url":"https://api.github.com/users/01org/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/01org/subscriptions","organizations_url":"https://api.github.com/users/01org/orgs","repos_url":"https://api.github.com/users/01org/repos","events_url":"https://api.github.com/users/01org/events{/privacy}","received_events_url":"https://api.github.com/users/01org/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/01org/corelibs-arduino101","description":null,"fork":false,"url":"https://api.github.com/repos/01org/corelibs-arduino101","forks_url":"https://api.github.com/repos/01org/corelibs-arduino101/forks","keys_url":"https://api.github.com/repos/01org/corelibs-arduino101/keys{/key_id}","collaborators_url":"https://api.github.com/repos/01org/corelibs-arduino101/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/01org/corelibs-arduino101/teams","hooks_url":"https://api.github.com/repos/01org/corelibs-arduino101/hooks","issue_events_url":"https://api.github.com/repos/01org/corelibs-arduino101/issues/events{/number}","events_url":"https://api.github.com/repos/01org/corelibs-arduino101/events","assignees_url":"https://api.github.com/repos/01org/corelibs-arduino101/assignees{/user}","branches_url":"https://api.github.com/repos/01org/corelibs-arduino101/branches{/branch}","tags_url":"https://api.github.com/repos/01org/corelibs-arduino101/tags","blobs_url":"https://api.github.com/repos/01org/corelibs-arduino101/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/01org/corelibs-arduino101/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/01org/corelibs-arduino101/git/refs{/sha}","trees_url":"https://api.github.com/repos/01org/corelibs-arduino101/git/trees{/sha}","statuses_url":"https://api.github.com/repos/01org/corelibs-arduino101/statuses/{sha}","languages_url":"https://api.github.com/repos/01org/corelibs-arduino101/languages","stargazers_url":"https://api.github.com/repos/01org/corelibs-arduino101/stargazers","contributors_url":"https://api.github.com/repos/01org/corelibs-arduino101/contributors","subscribers_url":"https://api.github.com/repos/01org/corelibs-arduino101/subscribers","subscription_url":"https://api.github.com/repos/01org/corelibs-arduino101/subscription","commits_url":"https://api.github.com/repos/01org/corelibs-arduino101/commits{/sha}","git_commits_url":"https://api.github.com/repos/01org/corelibs-arduino101/git/commits{/sha}","comments_url":"https://api.github.com/repos/01org/corelibs-arduino101/comments{/number}","issue_comment_url":"https://api.github.com/repos/01org/corelibs-arduino101/issues/comments{/number}","contents_url":"https://api.github.com/repos/01org/corelibs-arduino101/contents/{+path}","compare_url":"https://api.github.com/repos/01org/corelibs-arduino101/compare/{base}...{head}","merges_url":"https://api.github.com/repos/01org/corelibs-arduino101/merges","archive_url":"https://api.github.com/repos/01org/corelibs-arduino101/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/01org/corelibs-arduino101/downloads","issues_url":"https://api.github.com/repos/01org/corelibs-arduino101/issues{/number}","pulls_url":"https://api.github.com/repos/01org/corelibs-arduino101/pulls{/number}","milestones_url":"https://api.github.com/repos/01org/corelibs-arduino101/milestones{/number}","notifications_url":"https://api.github.com/repos/01org/corelibs-arduino101/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/01org/corelibs-arduino101/labels{/name}","releases_url":"https://api.github.com/repos/01org/corelibs-arduino101/releases{/id}","deployments_url":"https://api.github.com/repos/01org/corelibs-arduino101/deployments","created_at":"2015-04-16T20:29:04Z","updated_at":"2016-10-30T03:57:34Z","pushed_at":"2016-10-31T09:54:02Z","git_url":"git://github.com/01org/corelibs-arduino101.git","ssh_url":"git@github.com:01org/corelibs-arduino101.git","clone_url":"https://github.com/01org/corelibs-arduino101.git","svn_url":"https://github.com/01org/corelibs-arduino101","homepage":null,"size":4858,"stargazers_count":169,"watchers_count":169,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":95,"mirror_url":null,"open_issues_count":24,"forks":95,"open_issues":24,"watchers":169,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/01org/corelibs-arduino101/pulls/337"},"html":{"href":"https://github.com/01org/corelibs-arduino101/pull/337"},"issue":{"href":"https://api.github.com/repos/01org/corelibs-arduino101/issues/337"},"comments":{"href":"https://api.github.com/repos/01org/corelibs-arduino101/issues/337/comments"},"review_comments":{"href":"https://api.github.com/repos/01org/corelibs-arduino101/pulls/337/comments"},"review_comment":{"href":"https://api.github.com/repos/01org/corelibs-arduino101/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/01org/corelibs-arduino101/pulls/337/commits"},"statuses":{"href":"https://api.github.com/repos/01org/corelibs-arduino101/statuses/5b69b5a5e5fdaac9571ee07576d960fba1022eb2"}}}}
{"actor":{"display_login":"SidLeung"}}