init

open override fun init(parameters: ByteArray?): ConfigHeartbeatPublicationSet?

Initializes the mesh message based on the given parameters.

Return

the decoded BaseMeshMessage.

Parameters

parameters

Byte array containing the payload of the mesh message.


fun init(countLog: UByte, periodLog: UByte, destination: Address, ttl: UByte, networkKey: NetworkKey, features: Features): ConfigHeartbeatPublicationSet?

Creates a ConfigurationHeartbeatPublicationSet message.

Return

ConfigurationHeartbeatPublicationSet message or null if the provided values are invalid.

Parameters

countLog

Number of Heartbeat messages to be sent.

periodLog

Period for sending Heartbeat messages. This field is the interval used for sending messages.

destination

Destination address for Heartbeat messages. Address shall be a HeartbeatPublicationDestination.

ttl

TTL to be used when sending Heartbeat messages.

networkKey

Network Key that will be used send Heartbeat messages.

features

Features that trigger Heartbeat messages when changed.