java.lang.Object
org.openremote.agent.protocol.bluetooth.mesh.utils.RelaySettings

public class RelaySettings extends Object
Class containing Relay Settings values in a ProvisionedMeshNode
  • Field Details

    • RELAY_FEATURE_DISABLED

      public static final int RELAY_FEATURE_DISABLED
      See Also:
    • RELAY_FEATURE_ENABLED

      public static final int RELAY_FEATURE_ENABLED
      See Also:
    • RELAY_FEATURE_NOT_SUPPORTED

      public static final int RELAY_FEATURE_NOT_SUPPORTED
      See Also:
  • Constructor Details

    • RelaySettings

      public RelaySettings(int relayTransmitCount, int relayIntervalSteps)
      Constructs RelaySettings
      Parameters:
      relayTransmitCount - Number of retransmissions on advertising bearer for each Network PDU relayed by the node
      relayIntervalSteps - Number of 10-millisecond steps between retransmissions
  • Method Details

    • isRelaySupported

      public static boolean isRelaySupported(int relay)
    • getRelayTransmitCount

      public int getRelayTransmitCount()
      Returns the number of retransmissions on advertising bearer for each Network PDU relayed by the node
    • getTotalTransmissionsCount

      public int getTotalTransmissionsCount()
      Returns the number of total retransmissions.
    • getRelayIntervalSteps

      public int getRelayIntervalSteps()
      Returns the number of 10-millisecond steps between retransmissions
    • getRetransmissionIntervals

      public int getRetransmissionIntervals()
      Returns the interval interval set by the relayState settings
    • decodeRelayRetransmitInterval

      public static int decodeRelayRetransmitInterval(int interval)
      Decodes the Relay Retransmit Interval as steps
      Parameters:
      interval - Interval between 10-320 ms
      Returns:
      the interval as steps
      Throws:
      IllegalArgumentException - if the Relay Retransmit Interval is not in range of 10-320 ms