Messaging Protocol Over MQTT

Message Format to be used over MQTT

General Format

<PURPOSE>";"<TOPIC_REPLY_TO>";"<DEADLINE>[";"<PAYLOAD>]

The <PAYLOAD> section is optional.

Format Specification

Field Description
PURPOSE Variable length
Broadcast to Nodes = "BCAST"
Command to Node = "COMMAND"
Response = "RESPONSE
TOPIC_REPLY_TO Variable length, the topic to which send the response(s) of the operation, can be null for responses
WAIT_TIME Time in milliseconds, number, time allowed to get one or more answers, can be 0 for responses
PAYLOAD Variable length, the string to be parsed or relayed

Note: Data transfer uses '''128 chars ASCII table''' (1 byte per character).

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License