R7 Serial: Receive Data
Payload Size The maximum packet size for an SBD MT message is 270 bytes. The maximum user-definable payload is 268 bytes.
The \r shown at the end of response lines below denotes end-of-line only. On the wire, responses are framed with \n\r (<LF><CR>) and command responses are preceded by an empty line. Terminators you send remain a single \r.
When parsing, split on \n\r (or tolerate \r, \n, \r\n, \n\r) and skip blank lines. See Response Format for details.
| Serial Command | Function |
|---|---|
| R7+RH | Returns MT message with an Inbound MessageID the Payload |
| R7+D= | Deletes MT message with specified Inbound MessageID |
Read Oldest Received Message
R7+RH
This command checks for messages waiting and displays the oldest message received.
The response includes an Inbound MessageID, followed by the hex payload contained in the message.
If no messages are available, it will simply return OK.
/* Read oldest message */
R7+RH\r
/* Receive response */
<Inbound MessageID>,<Payload>\r
OK\r
Delete Received Message
R7+D=<Inbound MessageID>
This command will delete a specified message.
Deleting the oldest message will make a subsequent R7+RH return the next available message.
/* Delete oldest message */
R7+D=<Inbound MessageID>\r
OK\r