{"action":"created","comment":{"url":"https://api.github.com/repos/Samsung/TizenRT/pulls/comments/184585875","pull_request_review_id":115812430,"id":184585875,"diff_hunk":"@@ -0,0 +1,63 @@\n+/* ****************************************************************\n+*\n+* Copyright 2018 Samsung Electronics All Rights Reserved.\n+*\n+*\n+*\n+* Licensed under the Apache License, Version 2.0 (the \"License\");\n+* you may not use this file except in compliance with the License.\n+* You may obtain a copy of the License at\n+*\n+*      http://www.apache.org/licenses/LICENSE-2.0\n+*\n+* Unless required by applicable law or agreed to in writing, software\n+* distributed under the License is distributed on an \"AS IS\" BASIS,\n+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+* See the License for the specific language governing permissions and\n+* limitations under the License.\n+*\n+******************************************************************/\n+\n+#include <stdio.h>\n+#include <string.h>\n+#include <stdbool.h>\n+#include <signal.h>\n+#include <st_things/st_things.h>\n+#include \"iotbus_util.h\"\n+\n+#define TAG     \"BLINK_USER\"\n+\n+static const char* PROP_POWER = \"power\";\n+\n+bool handle_get_request_on_switch(st_things_get_request_message_s* req_msg, st_things_representation_s* resp_rep)\n+{\n+\tprintf(\"[%s]IN-handle_get_request_on_switch() called..\\n\", TAG);\n+\n+\tif (req_msg->has_property_key(req_msg, PROP_POWER)) {\n+\t\t// TODO: Write your implementation in this section.\n+\t\tresp_rep->set_str_value(resp_rep, PROP_POWER, get_led_power());\n+\t}\n+\n+\tprintf(\"[%s]OUT-handle_get_request_on_switch() called..\\n\", TAG);\n+\n+\treturn true;  // FIXME: Modify this line with the appropriate return value.\n+}\n+\n+bool handle_set_request_on_switch(st_things_set_request_message_s* req_msg, st_things_representation_s* resp_rep)\n+{\n+\tprintf(\"[%s]IN-handle_set_request_on_switch() called..\\n\", TAG);\n+\n+\tchar *power;\n+\tif (req_msg->rep->get_str_value(req_msg->rep, PROP_POWER, &power)) {       \n+\n+\t\tset_led_power(power);\n+\t\tresp_rep->set_str_value(resp_rep, PROP_POWER, get_led_power());\n+\n+\t\tst_things_notify_observers(req_msg->resource_uri);\n+\t}\n+\t\n+\tprintf(\"[%s]OUT-handle_set_request_on_switch() called..\\n\", TAG);","path":"apps/examples/st_things/blink/sample_blink_user.c","position":59,"original_position":59,"commit_id":"3f4d1db014979659f2bd60e24fe35f0ef7ea8529","original_commit_id":"3f4d1db014979659f2bd60e24fe35f0ef7ea8529","user":{"login":"JeongJunSik","id":25924775,"avatar_url":"https://avatars1.githubusercontent.com/u/25924775?v=4","gravatar_id":"","url":"https://api.github.com/users/JeongJunSik","html_url":"https://github.com/JeongJunSik","followers_url":"https://api.github.com/users/JeongJunSik/followers","following_url":"https://api.github.com/users/JeongJunSik/following{/other_user}","gists_url":"https://api.github.com/users/JeongJunSik/gists{/gist_id}","starred_url":"https://api.github.com/users/JeongJunSik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JeongJunSik/subscriptions","organizations_url":"https://api.github.com/users/JeongJunSik/orgs","repos_url":"https://api.github.com/users/JeongJunSik/repos","events_url":"https://api.github.com/users/JeongJunSik/events{/privacy}","received_events_url":"https://api.github.com/users/JeongJunSik/received_events","type":"User","site_admin":false},"body":"i don't thinks so. \r\nthis is just sample app and it can debug step by step.","created_at":"2018-04-27T03:46:04Z","updated_at":"2018-04-27T03:46:10Z","html_url":"https://github.com/Samsung/TizenRT/pull/1558#discussion_r184585875","pull_request_url":"https://api.github.com/repos/Samsung/TizenRT/pulls/1558","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/Samsung/TizenRT/pulls/comments/184585875"},"html":{"href":"https://github.com/Samsung/TizenRT/pull/1558#discussion_r184585875"},"pull_request":{"href":"https://api.github.com/repos/Samsung/TizenRT/pulls/1558"}},"in_reply_to_id":184582360},"pull_request":{"url":"https://api.github.com/repos/Samsung/TizenRT/pulls/1558","id":184198291,"html_url":"https://github.com/Samsung/TizenRT/pull/1558","diff_url":"https://github.com/Samsung/TizenRT/pull/1558.diff","patch_url":"https://github.com/Samsung/TizenRT/pull/1558.patch","issue_url":"https://api.github.com/repos/Samsung/TizenRT/issues/1558","number":1558,"state":"open","locked":false,"title":"apps/examples/st_things : Add new sample-app.","user":{"login":"YiHyunJin","id":33678155,"avatar_url":"https://avatars1.githubusercontent.com/u/33678155?v=4","gravatar_id":"","url":"https://api.github.com/users/YiHyunJin","html_url":"https://github.com/YiHyunJin","followers_url":"https://api.github.com/users/YiHyunJin/followers","following_url":"https://api.github.com/users/YiHyunJin/following{/other_user}","gists_url":"https://api.github.com/users/YiHyunJin/gists{/gist_id}","starred_url":"https://api.github.com/users/YiHyunJin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YiHyunJin/subscriptions","organizations_url":"https://api.github.com/users/YiHyunJin/orgs","repos_url":"https://api.github.com/users/YiHyunJin/repos","events_url":"https://api.github.com/users/YiHyunJin/events{/privacy}","received_events_url":"https://api.github.com/users/YiHyunJin/received_events","type":"User","site_admin":false},"body":"1. new sample-app is blink.\r\n2. blink use only on/off.","created_at":"2018-04-26T00:39:20Z","updated_at":"2018-04-27T03:46:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"41e25e5718ce654480703888af23d51320f6e8df","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Samsung/TizenRT/pulls/1558/commits","review_comments_url":"https://api.github.com/repos/Samsung/TizenRT/pulls/1558/comments","review_comment_url":"https://api.github.com/repos/Samsung/TizenRT/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Samsung/TizenRT/issues/1558/comments","statuses_url":"https://api.github.com/repos/Samsung/TizenRT/statuses/3f4d1db014979659f2bd60e24fe35f0ef7ea8529","head":{"label":"YiHyunJin:blink","ref":"blink","sha":"3f4d1db014979659f2bd60e24fe35f0ef7ea8529","user":{"login":"YiHyunJin","id":33678155,"avatar_url":"https://avatars1.githubusercontent.com/u/33678155?v=4","gravatar_id":"","url":"https://api.github.com/users/YiHyunJin","html_url":"https://github.com/YiHyunJin","followers_url":"https://api.github.com/users/YiHyunJin/followers","following_url":"https://api.github.com/users/YiHyunJin/following{/other_user}","gists_url":"https://api.github.com/users/YiHyunJin/gists{/gist_id}","starred_url":"https://api.github.com/users/YiHyunJin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YiHyunJin/subscriptions","organizations_url":"https://api.github.com/users/YiHyunJin/orgs","repos_url":"https://api.github.com/users/YiHyunJin/repos","events_url":"https://api.github.com/users/YiHyunJin/events{/privacy}","received_events_url":"https://api.github.com/users/YiHyunJin/received_events","type":"User","site_admin":false},"repo":{"id":110784300,"name":"TizenRT","full_name":"YiHyunJin/TizenRT","owner":{"login":"YiHyunJin","id":33678155,"avatar_url":"https://avatars1.githubusercontent.com/u/33678155?v=4","gravatar_id":"","url":"https://api.github.com/users/YiHyunJin","html_url":"https://github.com/YiHyunJin","followers_url":"https://api.github.com/users/YiHyunJin/followers","following_url":"https://api.github.com/users/YiHyunJin/following{/other_user}","gists_url":"https://api.github.com/users/YiHyunJin/gists{/gist_id}","starred_url":"https://api.github.com/users/YiHyunJin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YiHyunJin/subscriptions","organizations_url":"https://api.github.com/users/YiHyunJin/orgs","repos_url":"https://api.github.com/users/YiHyunJin/repos","events_url":"https://api.github.com/users/YiHyunJin/events{/privacy}","received_events_url":"https://api.github.com/users/YiHyunJin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/YiHyunJin/TizenRT","description":"Tizen RT is a lightweight RTOS-based platform to support low-end IoT devices","fork":true,"url":"https://api.github.com/repos/YiHyunJin/TizenRT","forks_url":"https://api.github.com/repos/YiHyunJin/TizenRT/forks","keys_url":"https://api.github.com/repos/YiHyunJin/TizenRT/keys{/key_id}","collaborators_url":"https://api.github.com/repos/YiHyunJin/TizenRT/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/YiHyunJin/TizenRT/teams","hooks_url":"https://api.github.com/repos/YiHyunJin/TizenRT/hooks","issue_events_url":"https://api.github.com/repos/YiHyunJin/TizenRT/issues/events{/number}","events_url":"https://api.github.com/repos/YiHyunJin/TizenRT/events","assignees_url":"https://api.github.com/repos/YiHyunJin/TizenRT/assignees{/user}","branches_url":"https://api.github.com/repos/YiHyunJin/TizenRT/branches{/branch}","tags_url":"https://api.github.com/repos/YiHyunJin/TizenRT/tags","blobs_url":"https://api.github.com/repos/YiHyunJin/TizenRT/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/YiHyunJin/TizenRT/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/YiHyunJin/TizenRT/git/refs{/sha}","trees_url":"https://api.github.com/repos/YiHyunJin/TizenRT/git/trees{/sha}","statuses_url":"https://api.github.com/repos/YiHyunJin/TizenRT/statuses/{sha}","languages_url":"https://api.github.com/repos/YiHyunJin/TizenRT/languages","stargazers_url":"https://api.github.com/repos/YiHyunJin/TizenRT/stargazers","contributors_url":"https://api.github.com/repos/YiHyunJin/TizenRT/contributors","subscribers_url":"https://api.github.com/repos/YiHyunJin/TizenRT/subscribers","subscription_url":"https://api.github.com/repos/YiHyunJin/TizenRT/subscription","commits_url":"https://api.github.com/repos/YiHyunJin/TizenRT/commits{/sha}","git_commits_url":"https://api.github.com/repos/YiHyunJin/TizenRT/git/commits{/sha}","comments_url":"https://api.github.com/repos/YiHyunJin/TizenRT/comments{/number}","issue_comment_url":"https://api.github.com/repos/YiHyunJin/TizenRT/issues/comments{/number}","contents_url":"https://api.github.com/repos/YiHyunJin/TizenRT/contents/{+path}","compare_url":"https://api.github.com/repos/YiHyunJin/TizenRT/compare/{base}...{head}","merges_url":"https://api.github.com/repos/YiHyunJin/TizenRT/merges","archive_url":"https://api.github.com/repos/YiHyunJin/TizenRT/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/YiHyunJin/TizenRT/downloads","issues_url":"https://api.github.com/repos/YiHyunJin/TizenRT/issues{/number}","pulls_url":"https://api.github.com/repos/YiHyunJin/TizenRT/pulls{/number}","milestones_url":"https://api.github.com/repos/YiHyunJin/TizenRT/milestones{/number}","notifications_url":"https://api.github.com/repos/YiHyunJin/TizenRT/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/YiHyunJin/TizenRT/labels{/name}","releases_url":"https://api.github.com/repos/YiHyunJin/TizenRT/releases{/id}","deployments_url":"https://api.github.com/repos/YiHyunJin/TizenRT/deployments","created_at":"2017-11-15T04:39:28Z","updated_at":"2017-11-15T04:39:42Z","pushed_at":"2018-04-26T10:17:05Z","git_url":"git://github.com/YiHyunJin/TizenRT.git","ssh_url":"git@github.com:YiHyunJin/TizenRT.git","clone_url":"https://github.com/YiHyunJin/TizenRT.git","svn_url":"https://github.com/YiHyunJin/TizenRT","homepage":"","size":96921,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Samsung:master","ref":"master","sha":"1775772d5a31aa8664cf8039d5deb4876d40a0e3","user":{"login":"Samsung","id":6210390,"avatar_url":"https://avatars3.githubusercontent.com/u/6210390?v=4","gravatar_id":"","url":"https://api.github.com/users/Samsung","html_url":"https://github.com/Samsung","followers_url":"https://api.github.com/users/Samsung/followers","following_url":"https://api.github.com/users/Samsung/following{/other_user}","gists_url":"https://api.github.com/users/Samsung/gists{/gist_id}","starred_url":"https://api.github.com/users/Samsung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Samsung/subscriptions","organizations_url":"https://api.github.com/users/Samsung/orgs","repos_url":"https://api.github.com/users/Samsung/repos","events_url":"https://api.github.com/users/Samsung/events{/privacy}","received_events_url":"https://api.github.com/users/Samsung/received_events","type":"Organization","site_admin":false},"repo":{"id":82517252,"name":"TizenRT","full_name":"Samsung/TizenRT","owner":{"login":"Samsung","id":6210390,"avatar_url":"https://avatars3.githubusercontent.com/u/6210390?v=4","gravatar_id":"","url":"https://api.github.com/users/Samsung","html_url":"https://github.com/Samsung","followers_url":"https://api.github.com/users/Samsung/followers","following_url":"https://api.github.com/users/Samsung/following{/other_user}","gists_url":"https://api.github.com/users/Samsung/gists{/gist_id}","starred_url":"https://api.github.com/users/Samsung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Samsung/subscriptions","organizations_url":"https://api.github.com/users/Samsung/orgs","repos_url":"https://api.github.com/users/Samsung/repos","events_url":"https://api.github.com/users/Samsung/events{/privacy}","received_events_url":"https://api.github.com/users/Samsung/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Samsung/TizenRT","description":"TizenRT is a lightweight RTOS-based platform to support low-end IoT devices","fork":false,"url":"https://api.github.com/repos/Samsung/TizenRT","forks_url":"https://api.github.com/repos/Samsung/TizenRT/forks","keys_url":"https://api.github.com/repos/Samsung/TizenRT/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Samsung/TizenRT/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Samsung/TizenRT/teams","hooks_url":"https://api.github.com/repos/Samsung/TizenRT/hooks","issue_events_url":"https://api.github.com/repos/Samsung/TizenRT/issues/events{/number}","events_url":"https://api.github.com/repos/Samsung/TizenRT/events","assignees_url":"https://api.github.com/repos/Samsung/TizenRT/assignees{/user}","branches_url":"https://api.github.com/repos/Samsung/TizenRT/branches{/branch}","tags_url":"https://api.github.com/repos/Samsung/TizenRT/tags","blobs_url":"https://api.github.com/repos/Samsung/TizenRT/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Samsung/TizenRT/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Samsung/TizenRT/git/refs{/sha}","trees_url":"https://api.github.com/repos/Samsung/TizenRT/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Samsung/TizenRT/statuses/{sha}","languages_url":"https://api.github.com/repos/Samsung/TizenRT/languages","stargazers_url":"https://api.github.com/repos/Samsung/TizenRT/stargazers","contributors_url":"https://api.github.com/repos/Samsung/TizenRT/contributors","subscribers_url":"https://api.github.com/repos/Samsung/TizenRT/subscribers","subscription_url":"https://api.github.com/repos/Samsung/TizenRT/subscription","commits_url":"https://api.github.com/repos/Samsung/TizenRT/commits{/sha}","git_commits_url":"https://api.github.com/repos/Samsung/TizenRT/git/commits{/sha}","comments_url":"https://api.github.com/repos/Samsung/TizenRT/comments{/number}","issue_comment_url":"https://api.github.com/repos/Samsung/TizenRT/issues/comments{/number}","contents_url":"https://api.github.com/repos/Samsung/TizenRT/contents/{+path}","compare_url":"https://api.github.com/repos/Samsung/TizenRT/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Samsung/TizenRT/merges","archive_url":"https://api.github.com/repos/Samsung/TizenRT/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Samsung/TizenRT/downloads","issues_url":"https://api.github.com/repos/Samsung/TizenRT/issues{/number}","pulls_url":"https://api.github.com/repos/Samsung/TizenRT/pulls{/number}","milestones_url":"https://api.github.com/repos/Samsung/TizenRT/milestones{/number}","notifications_url":"https://api.github.com/repos/Samsung/TizenRT/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Samsung/TizenRT/labels{/name}","releases_url":"https://api.github.com/repos/Samsung/TizenRT/releases{/id}","deployments_url":"https://api.github.com/repos/Samsung/TizenRT/deployments","created_at":"2017-02-20T04:38:30Z","updated_at":"2018-04-27T02:55:10Z","pushed_at":"2018-04-27T03:34:52Z","git_url":"git://github.com/Samsung/TizenRT.git","ssh_url":"git@github.com:Samsung/TizenRT.git","clone_url":"https://github.com/Samsung/TizenRT.git","svn_url":"https://github.com/Samsung/TizenRT","homepage":"","size":96886,"stargazers_count":147,"watchers_count":147,"language":"C","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":192,"mirror_url":null,"archived":false,"open_issues_count":39,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":192,"open_issues":39,"watchers":147,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Samsung/TizenRT/pulls/1558"},"html":{"href":"https://github.com/Samsung/TizenRT/pull/1558"},"issue":{"href":"https://api.github.com/repos/Samsung/TizenRT/issues/1558"},"comments":{"href":"https://api.github.com/repos/Samsung/TizenRT/issues/1558/comments"},"review_comments":{"href":"https://api.github.com/repos/Samsung/TizenRT/pulls/1558/comments"},"review_comment":{"href":"https://api.github.com/repos/Samsung/TizenRT/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Samsung/TizenRT/pulls/1558/commits"},"statuses":{"href":"https://api.github.com/repos/Samsung/TizenRT/statuses/3f4d1db014979659f2bd60e24fe35f0ef7ea8529"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"JeongJunSik"}}