Class HeartbeatSubscription
java.lang.Object
org.openremote.agent.protocol.bluetooth.mesh.utils.Heartbeat
org.openremote.agent.protocol.bluetooth.mesh.utils.HeartbeatSubscription
-
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
ConstructorsConstructorDescriptionHeartbeatSubscription
(int src, int dst, byte periodLog, byte countLog, int minHops, int maxHops) Heartbeat subscription. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns the maximum number of hopes when receiving heartbeat messages.int
Returns the minimum number of hopes when receiving heartbeat messages.int
getSrc()
Returns the source address.boolean
Returns 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
-
HeartbeatSubscription
public HeartbeatSubscription(int src, int dst, byte periodLog, byte countLog, int minHops, int maxHops) Heartbeat subscription.- Parameters:
src
- Source address for Heartbeat messages.dst
- Destination address for Heartbeat messages.periodLog
- Remaining period for processing Heartbeat messages.countLog
- Number of Heartbeat messages received.minHops
- Minimum hops when receiving Heartbeat messages.maxHops
- Maximum hops when receiving Heartbeat messages.
-
-
Method Details
-
toString
-
getSrc
public int getSrc()Returns the source address. -
getMinHops
public int getMinHops()Returns the minimum number of hopes when receiving heartbeat messages. -
getMaxHops
public int getMaxHops()Returns the maximum number of hopes when receiving heartbeat messages. -
isEnabled
public boolean isEnabled()Returns true if the heartbeat subscriptions are enabled. -
getCountLogDescription
-
getPeriodLogDescription
-
getPeriodLog2Period
-