new Message(messageId, mobileId, mailboxId, codecServiceId, codecMessageId, payloadRaw, payloadJson, mailboxTimeUtc, size)
infra/database/models/Message.js, line 21
Base class for return and forward messages
Name | Type | Description |
---|---|---|
messageId |
number |
A unique message ID assigned by the network |
mobileId |
string |
The unique ID of the satellite modem |
mailboxId |
number | string |
A unique ID of the mailbox/account |
codecServiceId |
number |
Service identifier for codec use (aka SIN) |
codecMessageId |
number |
Message identifier for codec use (aka MIN) |
payloadRaw |
Array.<number> |
optional
Array of decimal payload bytes |
payloadJson |
object |
optional
JSON structured payload for Message Definition File |
mailboxTimeUtc |
string |
Timestamp when the message arrived at the mailbox |
size |
number |
The message size in bytes |
Methods
-
getCodecMessageId(){number}
infra/database/models/Message.js, line 62 -
Returns the codecMessageId (aka MIN) of the message
Returns:
Type Description number 0..255 -
getCodecServiceId(){number}
infra/database/models/Message.js, line 48 -
Returns the codecServiceId (aka SIN) of the message
Returns:
Type Description number 0..255