{"_id":"57151dca3b689d20001d2105","user":"5564f227f0f70f0d00a9ab20","__v":3,"githubsync":"","isReference":false,"link_external":false,"project":"57151dca3b689d20001d20ff","sync_unique":"","type":"basic","api":{"settings":"","url":"","auth":"required","params":[],"results":{"codes":[]}},"slug":"getting-started","body":"Meshblu AMQP uses a request/response pattern for sending Meshblu commands.  A client will create a message containing the `subject: meshblu.request`, and specify a `replyTo` address **that must begin with the device UUID** where the server will send the command response.\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"properties:\\n  subject: 'meshblu.request'\\n  correlationId: '71027de4-f6ed-4431-b548-679fd1f5c154'\\n  replyTo: 'ca3b867c-cc46-4d40-a2b7-34259690dc38.response'\\napplicationProperties:\\n  jobType: 'GetStatus'\",\n      \"language\": \"coffeescript\",\n      \"name\": \"Example Request (in CSON)\"\n    }\n  ]\n}\n[/block]\nThe server will then process the message, and send the response to the `replyTo` as the `subject` in the response message. The `correlationId` is used to match requests to responses.\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"properties:\\n  subject: 'ca3b867c-cc46-4d40-a2b7-34259690dc38.response'\\n  correlationId: '71027de4-f6ed-4431-b548-679fd1f5c154'\\napplicationProperties:\\n  statusCode: 200\\nbody: '{\\\"meshblu\\\":\\\"online\\\"}'\",\n      \"language\": \"coffeescript\",\n      \"name\": \"Example Response (in CSON)\"\n    }\n  ]\n}\n[/block]","createdAt":"2016-04-18T17:47:54.401Z","excerpt":"This page will help you get started with Meshblu AMQP. You'll be up and running in a jiffy!","link_url":"","order":999,"title":"Getting Started","version":"57151dca3b689d20001d2102","category":"57151dca3b689d20001d2103","hidden":false,"updates":[],"childrenPages":[]}

Getting Started

This page will help you get started with Meshblu AMQP. You'll be up and running in a jiffy!

Meshblu AMQP uses a request/response pattern for sending Meshblu commands. A client will create a message containing the `subject: meshblu.request`, and specify a `replyTo` address **that must begin with the device UUID** where the server will send the command response. [block:code] { "codes": [ { "code": "properties:\n subject: 'meshblu.request'\n correlationId: '71027de4-f6ed-4431-b548-679fd1f5c154'\n replyTo: 'ca3b867c-cc46-4d40-a2b7-34259690dc38.response'\napplicationProperties:\n jobType: 'GetStatus'", "language": "coffeescript", "name": "Example Request (in CSON)" } ] } [/block] The server will then process the message, and send the response to the `replyTo` as the `subject` in the response message. The `correlationId` is used to match requests to responses. [block:code] { "codes": [ { "code": "properties:\n subject: 'ca3b867c-cc46-4d40-a2b7-34259690dc38.response'\n correlationId: '71027de4-f6ed-4431-b548-679fd1f5c154'\napplicationProperties:\n statusCode: 200\nbody: '{\"meshblu\":\"online\"}'", "language": "coffeescript", "name": "Example Response (in CSON)" } ] } [/block]