UnknownMessage

data class UnknownMessage(val opCode: UInt, val parameters: ByteArray) : MeshMessage

Unknown message defines a message that may not be defined in any of the local Models for the received opcode.

Constructors

Link copied to clipboard
constructor(opCode: UInt, parameters: ByteArray)

Constructs an UnknownMessage that cannot be parsed by any of the local models.

Properties

Link copied to clipboard

Defines if the message should be sent as an acknowledged message.

Link copied to clipboard

Defines if the message should be sent or was sent as Segmented Access Message. By default, this returns false. To force segmentation for shorter messages return true despite payload length. If payload size is longer than 11 bytes this field is not checked as the message must be segmented.

Link copied to clipboard

Whether the message is a Vendor Message, or not.

Link copied to clipboard
open override val opCode: UInt

Opcode of the message.

Link copied to clipboard
open override val parameters: ByteArray

Parameters of the message.

Link copied to clipboard

Defines if the message should be sent or has been sent using 32-bit or 64-bit TransMIC value. By default MeshMessageSecurity.Low is used. Only Segmented Access Messages can use 64-bit MIC. If the payload is shorter than 11 bytes, make sure you return true from MeshMessage.isSegmented, otherwise this field will be ignored.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String