![Swarm Tile Скачать руководство пользователя страница 50](http://html1.mh-extra.com/html/swarm/tile/tile_product-manual_1412593050.webp)
Returns one of:
Value
Description
$MM OK*xx
Delete message command succeeded
$MM ERR,BADPARAM*xx
Invalid command or argument to
$MM
command
$MM ERR,DBXINVMSGID*xx
Invalid message ID in
D
or
R
command
$MM ERR,DBXNOMORE*xx
No more messages when using
R=<O|N>
command
$MM DELETED,<msg_id>*xx
<msg_id>
deleted successfully
$MM MARKED,<msg_id>*xx
<msg_id>
marked as read successfully
$MM <msg_count>
Number of messages read/all/deleted (1)
$MM <data>,<msg_id>,<es>
Response to reading a message (2)
Notes:
Messages have three states: Unread, read, and deleted. Once an unread message is read, it's
state changes to read. It can subsequently be read again. If a message is deleted, it can no
longer be read.
'All'
in the above context means both read and unread messages, but does
not include messages that have been deleted.
If a message is marked read using the
M=<msg_id>
or
M=*
command, marking it as read again
is not an error.
The GPIO1 pin can be configured to indicate whether or not unread messages are pending (see
the
$GP GP=<mode>
command).
(1)
<msg_count>
is a number indicating the number of messages that are unread in response
to the
C=U
command, total number of read and unread messages in response to the
C=*
command, and the number of messages deleted in response to the
D=*
command.
(2)
<data>
is in the same format as an unsolicited
$RD
message.
<msg_id>
is the message
ID. The message ID should be treated as a simple arbitrary number.
<es>
is the epoch seconds
time when the message was received by the Tile.
June 2020
Swarm Tile Manual - Rev 1.00
50/63