Receive Meshblu Messages
Meshblu AMQP uses a special link in order to send you your Meshblu messages. You send an initial command of 'ConnectFirehose' to the 'meshblu.firehose.request' subject and a replyTo
subject. This will allow Meshblu to properly route your messages to your expected AMQP link.
properties:
subject: 'meshblu.firehose.request'
correlationId: '71027de4-f6ed-4431-b548-679fd1f5c154'
replyTo: 'ca3b867c-cc46-4d40-a2b7-34259690dc38.firehose'
applicationProperties:
jobType: 'ConnectFirehose'
toUuid: 'ca3b867c-cc46-4d40-a2b7-34259690dc38'
The server will then process the message, and begin streaming messages to your link.
properties:
subject: 'ca3b867c-cc46-4d40-a2b7-34259690dc38.response'
correlationId: '71027de4-f6ed-4431-b548-679fd1f5c154'
applicationProperties:
statusCode: 200
route: [
{
from:'ca3b867c-cc46-4d40-a2b7-34259690dc38'
to: 'ca3b867c-cc46-4d40-a2b7-34259690dc38'
type: 'message.sent'
}
]
body: '{"devices":["ca3b867c-cc46-4d40-a2b7-34259690dc38"],"payload":"hi"}'
See the Firehose documentation for more information on the metadata information.
Updated less than a minute ago