Class HeartbeatPublication
java.lang.Object
org.openremote.agent.protocol.bluetooth.mesh.utils.Heartbeat
org.openremote.agent.protocol.bluetooth.mesh.utils.HeartbeatPublication
-
Field Summary
Fields inherited from class org.openremote.agent.protocol.bluetooth.mesh.utils.Heartbeat
COUNT_MAX, COUNT_MIN, countLog, DEFAULT_PUBLICATION_TTL, DO_NOT_SEND_PERIODICALLY, dst, PERIOD_LOG_MAX, PERIOD_LOG_MIN, PERIOD_MAX, PERIOD_MIN, periodLog, SEND_INDEFINITELY -
Constructor Summary
ConstructorsConstructorDescriptionHeartbeatPublication(int dst, byte countLog, byte periodLog, int ttl, Features features, int netKeyIndex) Heartbeat subscription. -
Method Summary
Modifier and TypeMethodDescriptionReturns the features.intReturns the Net key index.intgetPeriodLog2Period(int periodLog) intgetTtl()Returns the publication ttl.booleanReturns true if the heartbeat subscriptions are enabled.toString()Methods inherited from class org.openremote.agent.protocol.bluetooth.mesh.utils.Heartbeat
calculateHeartbeatCount, calculateHeartbeatPeriod, decodeHeartbeatPeriod, getCountLog, getDst, getPeriodLog, isValidHeartbeatPeriod, isValidHeartbeatPeriodLog, periodToTime
-
Constructor Details
-
HeartbeatPublication
public HeartbeatPublication(int dst, byte countLog, byte periodLog, int ttl, Features features, int netKeyIndex) Heartbeat subscription.- Parameters:
dst- Destination address identifies the Heartbeat Publication destination where the address can only be an unassigned address, unicast address or a group address. All other values are prohibited.countLog- Number of Heartbeat messages to be sent.periodLog- Period for sending Heartbeat messages.ttl- TTL to be used when sending Heartbeat messages.features- Bit field indicating features that trigger Heartbeat messages when changed.netKeyIndex- Net key index.
-
-
Method Details
-
toString
-
getPeriod
public int getPeriod() -
getTtl
public int getTtl()Returns the publication ttl. -
getFeatures
Returns the features. -
getNetKeyIndex
public int getNetKeyIndex()Returns the Net key index. -
isEnabled
public boolean isEnabled()Returns true if the heartbeat subscriptions are enabled. -
getPeriodLogDescription
-
getPeriodLog2Period
-
getCountLogDescription
-