{"action":"created","comment":{"url":"https://api.github.com/repos/eclipse/hono/pulls/comments/239056815","pull_request_review_id":181745574,"id":239056815,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzOTA1NjgxNQ==","diff_hunk":"@@ -275,6 +275,35 @@ The table below provides an overview of the properties that must be set on a com\n | *correlation-id* | yes             | *properties*             | *string*     | MUST contain the value of the *correlation-id* property of the command request message. |\n | *status*         | yes             | *application-properties* | *integer*    | MUST contain a status code indicating the outcome of processing the command at the device (see [Command & Control API]({{< ref \"/api/Command-And-Control-API.md\" >}}) for details). |\n \n+### Examples\n+\n+The AMQP Command-line client can be used to receive and send a command response message from/to a consumer application. The client is used to simulate a device to receive commands and for sending command responses back to the application. The command consumer client is used to simulate an application sending a command to the device and receiving a command response from the device.\n+\n+Start the AMQP Command-line client, as follows:\n+\n+    $ /hono/cli/target$ java -jar hono-cli-0.9-M1-SNAPSHOT-exec.jar --spring.profiles.active=amqp-adapter-cli --subscribe=true\n+    $ 04:13:49.651 [vert.x-eventloop-thread-0] INFO  org.eclipse.hono.cli.AmqpSend - Device is now ready to receive commands\n+\n+After successfully starting the client, a message indicating that the device is ready to receive commands will be printed to standard output. The device is now waiting to receive commands from applications. To send a command to the device, open a new terminal shell and start the command consumer, as shown below:\n+\n+    $ /hono/cli/target$ mvn spring-boot:run -Drun.arguments=--hono.client.host=localhost,--hono.client.username=consumer@HONO,--hono.client.password=verysecret -Drun.profiles=command,ssl","path":"site/content/user-guide/amqp-adapter.md","position":90,"original_position":90,"commit_id":"41ea3710a4beac269f2bedc3b5badced82b52aa9","original_commit_id":"41ea3710a4beac269f2bedc3b5badced82b52aa9","user":{"login":"sophokles73","id":5682135,"node_id":"MDQ6VXNlcjU2ODIxMzU=","avatar_url":"https://avatars1.githubusercontent.com/u/5682135?v=4","gravatar_id":"","url":"https://api.github.com/users/sophokles73","html_url":"https://github.com/sophokles73","followers_url":"https://api.github.com/users/sophokles73/followers","following_url":"https://api.github.com/users/sophokles73/following{/other_user}","gists_url":"https://api.github.com/users/sophokles73/gists{/gist_id}","starred_url":"https://api.github.com/users/sophokles73/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sophokles73/subscriptions","organizations_url":"https://api.github.com/users/sophokles73/orgs","repos_url":"https://api.github.com/users/sophokles73/repos","events_url":"https://api.github.com/users/sophokles73/events{/privacy}","received_events_url":"https://api.github.com/users/sophokles73/received_events","type":"User","site_admin":false},"body":"both ways work, no doubt. I just propose to start the consumer consistently using the same approach throughout the example and my personal preference would be to use the `java -jar` form because it is more compact and intuitive.","created_at":"2018-12-05T13:08:54Z","updated_at":"2018-12-05T13:08:55Z","html_url":"https://github.com/eclipse/hono/pull/938#discussion_r239056815","pull_request_url":"https://api.github.com/repos/eclipse/hono/pulls/938","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/eclipse/hono/pulls/comments/239056815"},"html":{"href":"https://github.com/eclipse/hono/pull/938#discussion_r239056815"},"pull_request":{"href":"https://api.github.com/repos/eclipse/hono/pulls/938"}},"in_reply_to_id":238991273},"pull_request":{"url":"https://api.github.com/repos/eclipse/hono/pulls/938","id":235169330,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM1MTY5MzMw","html_url":"https://github.com/eclipse/hono/pull/938","diff_url":"https://github.com/eclipse/hono/pull/938.diff","patch_url":"https://github.com/eclipse/hono/pull/938.patch","issue_url":"https://api.github.com/repos/eclipse/hono/issues/938","number":938,"state":"open","locked":false,"title":"Add command and control example to AMQP adpater user guide.","user":{"login":"Alfusainey","id":2141415,"node_id":"MDQ6VXNlcjIxNDE0MTU=","avatar_url":"https://avatars0.githubusercontent.com/u/2141415?v=4","gravatar_id":"","url":"https://api.github.com/users/Alfusainey","html_url":"https://github.com/Alfusainey","followers_url":"https://api.github.com/users/Alfusainey/followers","following_url":"https://api.github.com/users/Alfusainey/following{/other_user}","gists_url":"https://api.github.com/users/Alfusainey/gists{/gist_id}","starred_url":"https://api.github.com/users/Alfusainey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Alfusainey/subscriptions","organizations_url":"https://api.github.com/users/Alfusainey/orgs","repos_url":"https://api.github.com/users/Alfusainey/repos","events_url":"https://api.github.com/users/Alfusainey/events{/privacy}","received_events_url":"https://api.github.com/users/Alfusainey/received_events","type":"User","site_admin":false},"body":"@sophokles73: This patch adds an example to the adapter user guide to test command and control\r\n\r\nSigned-off-by: Alfusainey Jallow <alf.jallow@gmail.com>","created_at":"2018-12-01T04:32:24Z","updated_at":"2018-12-05T13:08:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"45839c68d1c89127a5f976ba18393823ee0cb038","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":974522947,"node_id":"MDU6TGFiZWw5NzQ1MjI5NDc=","url":"https://api.github.com/repos/eclipse/hono/labels/AMQP%20Adapter","name":"AMQP Adapter","color":"aa3020","default":false},{"id":561319536,"node_id":"MDU6TGFiZWw1NjEzMTk1MzY=","url":"https://api.github.com/repos/eclipse/hono/labels/documentation","name":"documentation","color":"d4c5f9","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/eclipse/hono/pulls/938/commits","review_comments_url":"https://api.github.com/repos/eclipse/hono/pulls/938/comments","review_comment_url":"https://api.github.com/repos/eclipse/hono/pulls/comments{/number}","comments_url":"https://api.github.com/repos/eclipse/hono/issues/938/comments","statuses_url":"https://api.github.com/repos/eclipse/hono/statuses/41ea3710a4beac269f2bedc3b5badced82b52aa9","head":{"label":"Alfusainey:cc-amqp-client","ref":"cc-amqp-client","sha":"41ea3710a4beac269f2bedc3b5badced82b52aa9","user":{"login":"Alfusainey","id":2141415,"node_id":"MDQ6VXNlcjIxNDE0MTU=","avatar_url":"https://avatars0.githubusercontent.com/u/2141415?v=4","gravatar_id":"","url":"https://api.github.com/users/Alfusainey","html_url":"https://github.com/Alfusainey","followers_url":"https://api.github.com/users/Alfusainey/followers","following_url":"https://api.github.com/users/Alfusainey/following{/other_user}","gists_url":"https://api.github.com/users/Alfusainey/gists{/gist_id}","starred_url":"https://api.github.com/users/Alfusainey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Alfusainey/subscriptions","organizations_url":"https://api.github.com/users/Alfusainey/orgs","repos_url":"https://api.github.com/users/Alfusainey/repos","events_url":"https://api.github.com/users/Alfusainey/events{/privacy}","received_events_url":"https://api.github.com/users/Alfusainey/received_events","type":"User","site_admin":false},"repo":{"id":123575640,"node_id":"MDEwOlJlcG9zaXRvcnkxMjM1NzU2NDA=","name":"hono","full_name":"Alfusainey/hono","private":false,"owner":{"login":"Alfusainey","id":2141415,"node_id":"MDQ6VXNlcjIxNDE0MTU=","avatar_url":"https://avatars0.githubusercontent.com/u/2141415?v=4","gravatar_id":"","url":"https://api.github.com/users/Alfusainey","html_url":"https://github.com/Alfusainey","followers_url":"https://api.github.com/users/Alfusainey/followers","following_url":"https://api.github.com/users/Alfusainey/following{/other_user}","gists_url":"https://api.github.com/users/Alfusainey/gists{/gist_id}","starred_url":"https://api.github.com/users/Alfusainey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Alfusainey/subscriptions","organizations_url":"https://api.github.com/users/Alfusainey/orgs","repos_url":"https://api.github.com/users/Alfusainey/repos","events_url":"https://api.github.com/users/Alfusainey/events{/privacy}","received_events_url":"https://api.github.com/users/Alfusainey/received_events","type":"User","site_admin":false},"html_url":"https://github.com/Alfusainey/hono","description":"Eclipse Hono™ Project","fork":true,"url":"https://api.github.com/repos/Alfusainey/hono","forks_url":"https://api.github.com/repos/Alfusainey/hono/forks","keys_url":"https://api.github.com/repos/Alfusainey/hono/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Alfusainey/hono/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Alfusainey/hono/teams","hooks_url":"https://api.github.com/repos/Alfusainey/hono/hooks","issue_events_url":"https://api.github.com/repos/Alfusainey/hono/issues/events{/number}","events_url":"https://api.github.com/repos/Alfusainey/hono/events","assignees_url":"https://api.github.com/repos/Alfusainey/hono/assignees{/user}","branches_url":"https://api.github.com/repos/Alfusainey/hono/branches{/branch}","tags_url":"https://api.github.com/repos/Alfusainey/hono/tags","blobs_url":"https://api.github.com/repos/Alfusainey/hono/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Alfusainey/hono/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Alfusainey/hono/git/refs{/sha}","trees_url":"https://api.github.com/repos/Alfusainey/hono/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Alfusainey/hono/statuses/{sha}","languages_url":"https://api.github.com/repos/Alfusainey/hono/languages","stargazers_url":"https://api.github.com/repos/Alfusainey/hono/stargazers","contributors_url":"https://api.github.com/repos/Alfusainey/hono/contributors","subscribers_url":"https://api.github.com/repos/Alfusainey/hono/subscribers","subscription_url":"https://api.github.com/repos/Alfusainey/hono/subscription","commits_url":"https://api.github.com/repos/Alfusainey/hono/commits{/sha}","git_commits_url":"https://api.github.com/repos/Alfusainey/hono/git/commits{/sha}","comments_url":"https://api.github.com/repos/Alfusainey/hono/comments{/number}","issue_comment_url":"https://api.github.com/repos/Alfusainey/hono/issues/comments{/number}","contents_url":"https://api.github.com/repos/Alfusainey/hono/contents/{+path}","compare_url":"https://api.github.com/repos/Alfusainey/hono/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Alfusainey/hono/merges","archive_url":"https://api.github.com/repos/Alfusainey/hono/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Alfusainey/hono/downloads","issues_url":"https://api.github.com/repos/Alfusainey/hono/issues{/number}","pulls_url":"https://api.github.com/repos/Alfusainey/hono/pulls{/number}","milestones_url":"https://api.github.com/repos/Alfusainey/hono/milestones{/number}","notifications_url":"https://api.github.com/repos/Alfusainey/hono/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Alfusainey/hono/labels{/name}","releases_url":"https://api.github.com/repos/Alfusainey/hono/releases{/id}","deployments_url":"https://api.github.com/repos/Alfusainey/hono/deployments","created_at":"2018-03-02T12:18:32Z","updated_at":"2018-11-30T16:47:33Z","pushed_at":"2018-12-02T04:52:52Z","git_url":"git://github.com/Alfusainey/hono.git","ssh_url":"git@github.com:Alfusainey/hono.git","clone_url":"https://github.com/Alfusainey/hono.git","svn_url":"https://github.com/Alfusainey/hono","homepage":"http://www.eclipse.org/hono","size":17463,"stargazers_count":0,"watchers_count":0,"language":"Java","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":"epl-2.0","name":"Eclipse Public License 2.0","spdx_id":"EPL-2.0","url":"https://api.github.com/licenses/epl-2.0","node_id":"MDc6TGljZW5zZTMy"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"eclipse:master","ref":"master","sha":"595eadc637cb81e692185f6deaddef6b739ebabd","user":{"login":"eclipse","id":56974,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU2OTc0","avatar_url":"https://avatars1.githubusercontent.com/u/56974?v=4","gravatar_id":"","url":"https://api.github.com/users/eclipse","html_url":"https://github.com/eclipse","followers_url":"https://api.github.com/users/eclipse/followers","following_url":"https://api.github.com/users/eclipse/following{/other_user}","gists_url":"https://api.github.com/users/eclipse/gists{/gist_id}","starred_url":"https://api.github.com/users/eclipse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eclipse/subscriptions","organizations_url":"https://api.github.com/users/eclipse/orgs","repos_url":"https://api.github.com/users/eclipse/repos","events_url":"https://api.github.com/users/eclipse/events{/privacy}","received_events_url":"https://api.github.com/users/eclipse/received_events","type":"Organization","site_admin":false},"repo":{"id":51307016,"node_id":"MDEwOlJlcG9zaXRvcnk1MTMwNzAxNg==","name":"hono","full_name":"eclipse/hono","private":false,"owner":{"login":"eclipse","id":56974,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU2OTc0","avatar_url":"https://avatars1.githubusercontent.com/u/56974?v=4","gravatar_id":"","url":"https://api.github.com/users/eclipse","html_url":"https://github.com/eclipse","followers_url":"https://api.github.com/users/eclipse/followers","following_url":"https://api.github.com/users/eclipse/following{/other_user}","gists_url":"https://api.github.com/users/eclipse/gists{/gist_id}","starred_url":"https://api.github.com/users/eclipse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eclipse/subscriptions","organizations_url":"https://api.github.com/users/eclipse/orgs","repos_url":"https://api.github.com/users/eclipse/repos","events_url":"https://api.github.com/users/eclipse/events{/privacy}","received_events_url":"https://api.github.com/users/eclipse/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/eclipse/hono","description":"Eclipse Hono™ Project","fork":false,"url":"https://api.github.com/repos/eclipse/hono","forks_url":"https://api.github.com/repos/eclipse/hono/forks","keys_url":"https://api.github.com/repos/eclipse/hono/keys{/key_id}","collaborators_url":"https://api.github.com/repos/eclipse/hono/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/eclipse/hono/teams","hooks_url":"https://api.github.com/repos/eclipse/hono/hooks","issue_events_url":"https://api.github.com/repos/eclipse/hono/issues/events{/number}","events_url":"https://api.github.com/repos/eclipse/hono/events","assignees_url":"https://api.github.com/repos/eclipse/hono/assignees{/user}","branches_url":"https://api.github.com/repos/eclipse/hono/branches{/branch}","tags_url":"https://api.github.com/repos/eclipse/hono/tags","blobs_url":"https://api.github.com/repos/eclipse/hono/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/eclipse/hono/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/eclipse/hono/git/refs{/sha}","trees_url":"https://api.github.com/repos/eclipse/hono/git/trees{/sha}","statuses_url":"https://api.github.com/repos/eclipse/hono/statuses/{sha}","languages_url":"https://api.github.com/repos/eclipse/hono/languages","stargazers_url":"https://api.github.com/repos/eclipse/hono/stargazers","contributors_url":"https://api.github.com/repos/eclipse/hono/contributors","subscribers_url":"https://api.github.com/repos/eclipse/hono/subscribers","subscription_url":"https://api.github.com/repos/eclipse/hono/subscription","commits_url":"https://api.github.com/repos/eclipse/hono/commits{/sha}","git_commits_url":"https://api.github.com/repos/eclipse/hono/git/commits{/sha}","comments_url":"https://api.github.com/repos/eclipse/hono/comments{/number}","issue_comment_url":"https://api.github.com/repos/eclipse/hono/issues/comments{/number}","contents_url":"https://api.github.com/repos/eclipse/hono/contents/{+path}","compare_url":"https://api.github.com/repos/eclipse/hono/compare/{base}...{head}","merges_url":"https://api.github.com/repos/eclipse/hono/merges","archive_url":"https://api.github.com/repos/eclipse/hono/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/eclipse/hono/downloads","issues_url":"https://api.github.com/repos/eclipse/hono/issues{/number}","pulls_url":"https://api.github.com/repos/eclipse/hono/pulls{/number}","milestones_url":"https://api.github.com/repos/eclipse/hono/milestones{/number}","notifications_url":"https://api.github.com/repos/eclipse/hono/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/eclipse/hono/labels{/name}","releases_url":"https://api.github.com/repos/eclipse/hono/releases{/id}","deployments_url":"https://api.github.com/repos/eclipse/hono/deployments","created_at":"2016-02-08T15:45:28Z","updated_at":"2018-12-05T11:54:57Z","pushed_at":"2018-12-05T11:54:54Z","git_url":"git://github.com/eclipse/hono.git","ssh_url":"git@github.com:eclipse/hono.git","clone_url":"https://github.com/eclipse/hono.git","svn_url":"https://github.com/eclipse/hono","homepage":"http://www.eclipse.org/hono","size":17423,"stargazers_count":175,"watchers_count":175,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":57,"mirror_url":null,"archived":false,"open_issues_count":83,"license":{"key":"epl-2.0","name":"Eclipse Public License 2.0","spdx_id":"EPL-2.0","url":"https://api.github.com/licenses/epl-2.0","node_id":"MDc6TGljZW5zZTMy"},"forks":57,"open_issues":83,"watchers":175,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/eclipse/hono/pulls/938"},"html":{"href":"https://github.com/eclipse/hono/pull/938"},"issue":{"href":"https://api.github.com/repos/eclipse/hono/issues/938"},"comments":{"href":"https://api.github.com/repos/eclipse/hono/issues/938/comments"},"review_comments":{"href":"https://api.github.com/repos/eclipse/hono/pulls/938/comments"},"review_comment":{"href":"https://api.github.com/repos/eclipse/hono/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/eclipse/hono/pulls/938/commits"},"statuses":{"href":"https://api.github.com/repos/eclipse/hono/statuses/41ea3710a4beac269f2bedc3b5badced82b52aa9"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"sophokles73"}}