Class HeartbeatSubscription

java.lang.Object
org.openremote.agent.protocol.bluetooth.mesh.utils.Heartbeat
org.openremote.agent.protocol.bluetooth.mesh.utils.HeartbeatSubscription

public class HeartbeatSubscription extends Heartbeat
  • 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

      public String toString()
      Overrides:
      toString in class Object
    • 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.
      Specified by:
      isEnabled in class Heartbeat
    • getCountLogDescription

      public String getCountLogDescription()
    • getPeriodLogDescription

      public String getPeriodLogDescription()
    • getPeriodLog2Period

      public Short getPeriodLog2Period()