{"action":"created","comment":{"url":"https://api.github.com/repos/fxbox/openzwave-rust-example/pulls/comments/56531815","id":56531815,"diff_hunk":"@@ -210,6 +210,27 @@ fn main() {\n                 }\n             },\n             \"nodes_dbg\"             => println!(\"{:?}\\n\", program.state.lock().unwrap().nodes),\n+            \"set\"                   => {\n+                if tokens.len() != 4 {\n+                    println!(\"Must provide a HomeID, ValueID and a value\");\n+                } else {\n+                    if let Ok(home_id) = u32::from_str_radix(tokens[1], 16) {\n+                        if let Ok(id) = u64::from_str_radix(tokens[2], 16) {","path":"src/main.rs","position":9,"original_position":9,"commit_id":"7b85edfec33137bd941fcbe6109fd368e18393b3","original_commit_id":"7b85edfec33137bd941fcbe6109fd368e18393b3","user":{"login":"dhylands","id":127500,"avatar_url":"https://avatars.githubusercontent.com/u/127500?v=3","gravatar_id":"","url":"https://api.github.com/users/dhylands","html_url":"https://github.com/dhylands","followers_url":"https://api.github.com/users/dhylands/followers","following_url":"https://api.github.com/users/dhylands/following{/other_user}","gists_url":"https://api.github.com/users/dhylands/gists{/gist_id}","starred_url":"https://api.github.com/users/dhylands/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhylands/subscriptions","organizations_url":"https://api.github.com/users/dhylands/orgs","repos_url":"https://api.github.com/users/dhylands/repos","events_url":"https://api.github.com/users/dhylands/events{/privacy}","received_events_url":"https://api.github.com/users/dhylands/received_events","type":"User","site_admin":false},"body":"Ahh - didn't know about break with match","created_at":"2016-03-17T16:16:15Z","updated_at":"2016-03-17T16:16:15Z","html_url":"https://github.com/fxbox/openzwave-rust-example/pull/3#discussion_r56531815","pull_request_url":"https://api.github.com/repos/fxbox/openzwave-rust-example/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/fxbox/openzwave-rust-example/pulls/comments/56531815"},"html":{"href":"https://github.com/fxbox/openzwave-rust-example/pull/3#discussion_r56531815"},"pull_request":{"href":"https://api.github.com/repos/fxbox/openzwave-rust-example/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/fxbox/openzwave-rust-example/pulls/3","id":63167476,"html_url":"https://github.com/fxbox/openzwave-rust-example/pull/3","diff_url":"https://github.com/fxbox/openzwave-rust-example/pull/3.diff","patch_url":"https://github.com/fxbox/openzwave-rust-example/pull/3.patch","issue_url":"https://api.github.com/repos/fxbox/openzwave-rust-example/issues/3","number":3,"state":"open","locked":false,"title":"Add set command to allow non-secure nodes to be controlled.","user":{"login":"dhylands","id":127500,"avatar_url":"https://avatars.githubusercontent.com/u/127500?v=3","gravatar_id":"","url":"https://api.github.com/users/dhylands","html_url":"https://github.com/dhylands","followers_url":"https://api.github.com/users/dhylands/followers","following_url":"https://api.github.com/users/dhylands/following{/other_user}","gists_url":"https://api.github.com/users/dhylands/gists{/gist_id}","starred_url":"https://api.github.com/users/dhylands/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhylands/subscriptions","organizations_url":"https://api.github.com/users/dhylands/orgs","repos_url":"https://api.github.com/users/dhylands/repos","events_url":"https://api.github.com/users/dhylands/events{/privacy}","received_events_url":"https://api.github.com/users/dhylands/received_events","type":"User","site_admin":false},"body":"r? @julienw ","created_at":"2016-03-17T03:07:17Z","updated_at":"2016-03-17T16:16:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":"32b3b0e2a900c0b9517a83672ed1a5339440ed79","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/fxbox/openzwave-rust-example/pulls/3/commits","review_comments_url":"https://api.github.com/repos/fxbox/openzwave-rust-example/pulls/3/comments","review_comment_url":"https://api.github.com/repos/fxbox/openzwave-rust-example/pulls/comments{/number}","comments_url":"https://api.github.com/repos/fxbox/openzwave-rust-example/issues/3/comments","statuses_url":"https://api.github.com/repos/fxbox/openzwave-rust-example/statuses/7b85edfec33137bd941fcbe6109fd368e18393b3","head":{"label":"dhylands:set-value","ref":"set-value","sha":"7b85edfec33137bd941fcbe6109fd368e18393b3","user":{"login":"dhylands","id":127500,"avatar_url":"https://avatars.githubusercontent.com/u/127500?v=3","gravatar_id":"","url":"https://api.github.com/users/dhylands","html_url":"https://github.com/dhylands","followers_url":"https://api.github.com/users/dhylands/followers","following_url":"https://api.github.com/users/dhylands/following{/other_user}","gists_url":"https://api.github.com/users/dhylands/gists{/gist_id}","starred_url":"https://api.github.com/users/dhylands/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhylands/subscriptions","organizations_url":"https://api.github.com/users/dhylands/orgs","repos_url":"https://api.github.com/users/dhylands/repos","events_url":"https://api.github.com/users/dhylands/events{/privacy}","received_events_url":"https://api.github.com/users/dhylands/received_events","type":"User","site_admin":false},"repo":{"id":51966036,"name":"openzwave-rust-example","full_name":"dhylands/openzwave-rust-example","owner":{"login":"dhylands","id":127500,"avatar_url":"https://avatars.githubusercontent.com/u/127500?v=3","gravatar_id":"","url":"https://api.github.com/users/dhylands","html_url":"https://github.com/dhylands","followers_url":"https://api.github.com/users/dhylands/followers","following_url":"https://api.github.com/users/dhylands/following{/other_user}","gists_url":"https://api.github.com/users/dhylands/gists{/gist_id}","starred_url":"https://api.github.com/users/dhylands/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhylands/subscriptions","organizations_url":"https://api.github.com/users/dhylands/orgs","repos_url":"https://api.github.com/users/dhylands/repos","events_url":"https://api.github.com/users/dhylands/events{/privacy}","received_events_url":"https://api.github.com/users/dhylands/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dhylands/openzwave-rust-example","description":"Example code to use https://github.com/fxbox/openzwave-rust","fork":true,"url":"https://api.github.com/repos/dhylands/openzwave-rust-example","forks_url":"https://api.github.com/repos/dhylands/openzwave-rust-example/forks","keys_url":"https://api.github.com/repos/dhylands/openzwave-rust-example/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dhylands/openzwave-rust-example/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dhylands/openzwave-rust-example/teams","hooks_url":"https://api.github.com/repos/dhylands/openzwave-rust-example/hooks","issue_events_url":"https://api.github.com/repos/dhylands/openzwave-rust-example/issues/events{/number}","events_url":"https://api.github.com/repos/dhylands/openzwave-rust-example/events","assignees_url":"https://api.github.com/repos/dhylands/openzwave-rust-example/assignees{/user}","branches_url":"https://api.github.com/repos/dhylands/openzwave-rust-example/branches{/branch}","tags_url":"https://api.github.com/repos/dhylands/openzwave-rust-example/tags","blobs_url":"https://api.github.com/repos/dhylands/openzwave-rust-example/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dhylands/openzwave-rust-example/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dhylands/openzwave-rust-example/git/refs{/sha}","trees_url":"https://api.github.com/repos/dhylands/openzwave-rust-example/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dhylands/openzwave-rust-example/statuses/{sha}","languages_url":"https://api.github.com/repos/dhylands/openzwave-rust-example/languages","stargazers_url":"https://api.github.com/repos/dhylands/openzwave-rust-example/stargazers","contributors_url":"https://api.github.com/repos/dhylands/openzwave-rust-example/contributors","subscribers_url":"https://api.github.com/repos/dhylands/openzwave-rust-example/subscribers","subscription_url":"https://api.github.com/repos/dhylands/openzwave-rust-example/subscription","commits_url":"https://api.github.com/repos/dhylands/openzwave-rust-example/commits{/sha}","git_commits_url":"https://api.github.com/repos/dhylands/openzwave-rust-example/git/commits{/sha}","comments_url":"https://api.github.com/repos/dhylands/openzwave-rust-example/comments{/number}","issue_comment_url":"https://api.github.com/repos/dhylands/openzwave-rust-example/issues/comments{/number}","contents_url":"https://api.github.com/repos/dhylands/openzwave-rust-example/contents/{+path}","compare_url":"https://api.github.com/repos/dhylands/openzwave-rust-example/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dhylands/openzwave-rust-example/merges","archive_url":"https://api.github.com/repos/dhylands/openzwave-rust-example/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dhylands/openzwave-rust-example/downloads","issues_url":"https://api.github.com/repos/dhylands/openzwave-rust-example/issues{/number}","pulls_url":"https://api.github.com/repos/dhylands/openzwave-rust-example/pulls{/number}","milestones_url":"https://api.github.com/repos/dhylands/openzwave-rust-example/milestones{/number}","notifications_url":"https://api.github.com/repos/dhylands/openzwave-rust-example/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dhylands/openzwave-rust-example/labels{/name}","releases_url":"https://api.github.com/repos/dhylands/openzwave-rust-example/releases{/id}","deployments_url":"https://api.github.com/repos/dhylands/openzwave-rust-example/deployments","created_at":"2016-02-18T00:26:09Z","updated_at":"2016-02-18T00:26:11Z","pushed_at":"2016-03-17T03:05:59Z","git_url":"git://github.com/dhylands/openzwave-rust-example.git","ssh_url":"git@github.com:dhylands/openzwave-rust-example.git","clone_url":"https://github.com/dhylands/openzwave-rust-example.git","svn_url":"https://github.com/dhylands/openzwave-rust-example","homepage":"","size":15,"stargazers_count":0,"watchers_count":0,"language":"Rust","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":0,"default_branch":"master"}},"base":{"label":"fxbox:master","ref":"master","sha":"d09a566578d1cfcf09f323f9e597fe17a0949ba7","user":{"login":"fxbox","id":17052474,"avatar_url":"https://avatars.githubusercontent.com/u/17052474?v=3","gravatar_id":"","url":"https://api.github.com/users/fxbox","html_url":"https://github.com/fxbox","followers_url":"https://api.github.com/users/fxbox/followers","following_url":"https://api.github.com/users/fxbox/following{/other_user}","gists_url":"https://api.github.com/users/fxbox/gists{/gist_id}","starred_url":"https://api.github.com/users/fxbox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fxbox/subscriptions","organizations_url":"https://api.github.com/users/fxbox/orgs","repos_url":"https://api.github.com/users/fxbox/repos","events_url":"https://api.github.com/users/fxbox/events{/privacy}","received_events_url":"https://api.github.com/users/fxbox/received_events","type":"Organization","site_admin":false},"repo":{"id":51152738,"name":"openzwave-rust-example","full_name":"fxbox/openzwave-rust-example","owner":{"login":"fxbox","id":17052474,"avatar_url":"https://avatars.githubusercontent.com/u/17052474?v=3","gravatar_id":"","url":"https://api.github.com/users/fxbox","html_url":"https://github.com/fxbox","followers_url":"https://api.github.com/users/fxbox/followers","following_url":"https://api.github.com/users/fxbox/following{/other_user}","gists_url":"https://api.github.com/users/fxbox/gists{/gist_id}","starred_url":"https://api.github.com/users/fxbox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fxbox/subscriptions","organizations_url":"https://api.github.com/users/fxbox/orgs","repos_url":"https://api.github.com/users/fxbox/repos","events_url":"https://api.github.com/users/fxbox/events{/privacy}","received_events_url":"https://api.github.com/users/fxbox/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/fxbox/openzwave-rust-example","description":"Example code to use https://github.com/fxbox/openzwave-rust","fork":false,"url":"https://api.github.com/repos/fxbox/openzwave-rust-example","forks_url":"https://api.github.com/repos/fxbox/openzwave-rust-example/forks","keys_url":"https://api.github.com/repos/fxbox/openzwave-rust-example/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fxbox/openzwave-rust-example/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fxbox/openzwave-rust-example/teams","hooks_url":"https://api.github.com/repos/fxbox/openzwave-rust-example/hooks","issue_events_url":"https://api.github.com/repos/fxbox/openzwave-rust-example/issues/events{/number}","events_url":"https://api.github.com/repos/fxbox/openzwave-rust-example/events","assignees_url":"https://api.github.com/repos/fxbox/openzwave-rust-example/assignees{/user}","branches_url":"https://api.github.com/repos/fxbox/openzwave-rust-example/branches{/branch}","tags_url":"https://api.github.com/repos/fxbox/openzwave-rust-example/tags","blobs_url":"https://api.github.com/repos/fxbox/openzwave-rust-example/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fxbox/openzwave-rust-example/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fxbox/openzwave-rust-example/git/refs{/sha}","trees_url":"https://api.github.com/repos/fxbox/openzwave-rust-example/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fxbox/openzwave-rust-example/statuses/{sha}","languages_url":"https://api.github.com/repos/fxbox/openzwave-rust-example/languages","stargazers_url":"https://api.github.com/repos/fxbox/openzwave-rust-example/stargazers","contributors_url":"https://api.github.com/repos/fxbox/openzwave-rust-example/contributors","subscribers_url":"https://api.github.com/repos/fxbox/openzwave-rust-example/subscribers","subscription_url":"https://api.github.com/repos/fxbox/openzwave-rust-example/subscription","commits_url":"https://api.github.com/repos/fxbox/openzwave-rust-example/commits{/sha}","git_commits_url":"https://api.github.com/repos/fxbox/openzwave-rust-example/git/commits{/sha}","comments_url":"https://api.github.com/repos/fxbox/openzwave-rust-example/comments{/number}","issue_comment_url":"https://api.github.com/repos/fxbox/openzwave-rust-example/issues/comments{/number}","contents_url":"https://api.github.com/repos/fxbox/openzwave-rust-example/contents/{+path}","compare_url":"https://api.github.com/repos/fxbox/openzwave-rust-example/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fxbox/openzwave-rust-example/merges","archive_url":"https://api.github.com/repos/fxbox/openzwave-rust-example/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fxbox/openzwave-rust-example/downloads","issues_url":"https://api.github.com/repos/fxbox/openzwave-rust-example/issues{/number}","pulls_url":"https://api.github.com/repos/fxbox/openzwave-rust-example/pulls{/number}","milestones_url":"https://api.github.com/repos/fxbox/openzwave-rust-example/milestones{/number}","notifications_url":"https://api.github.com/repos/fxbox/openzwave-rust-example/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fxbox/openzwave-rust-example/labels{/name}","releases_url":"https://api.github.com/repos/fxbox/openzwave-rust-example/releases{/id}","deployments_url":"https://api.github.com/repos/fxbox/openzwave-rust-example/deployments","created_at":"2016-02-05T14:55:22Z","updated_at":"2016-02-16T20:59:22Z","pushed_at":"2016-03-17T10:42:00Z","git_url":"git://github.com/fxbox/openzwave-rust-example.git","ssh_url":"git@github.com:fxbox/openzwave-rust-example.git","clone_url":"https://github.com/fxbox/openzwave-rust-example.git","svn_url":"https://github.com/fxbox/openzwave-rust-example","homepage":"","size":13,"stargazers_count":0,"watchers_count":0,"language":"Rust","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":2,"forks":2,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/fxbox/openzwave-rust-example/pulls/3"},"html":{"href":"https://github.com/fxbox/openzwave-rust-example/pull/3"},"issue":{"href":"https://api.github.com/repos/fxbox/openzwave-rust-example/issues/3"},"comments":{"href":"https://api.github.com/repos/fxbox/openzwave-rust-example/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/fxbox/openzwave-rust-example/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/fxbox/openzwave-rust-example/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/fxbox/openzwave-rust-example/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/fxbox/openzwave-rust-example/statuses/7b85edfec33137bd941fcbe6109fd368e18393b3"}}}}