Class RelaySettings
java.lang.Object
org.openremote.agent.protocol.bluetooth.mesh.utils.RelaySettings
Class containing Relay Settings values in a
ProvisionedMeshNode-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final int -
Constructor Summary
ConstructorsConstructorDescriptionRelaySettings(int relayTransmitCount, int relayIntervalSteps) ConstructsRelaySettings -
Method Summary
Modifier and TypeMethodDescriptionstatic intdecodeRelayRetransmitInterval(int interval) Decodes the Relay Retransmit Interval as stepsintReturns the number of 10-millisecond steps between retransmissionsintReturns the number of retransmissions on advertising bearer for each Network PDU relayed by the nodeintReturns the interval interval set by the relayState settingsintReturns the number of total retransmissions.static booleanisRelaySupported(int relay)
-
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) ConstructsRelaySettings- Parameters:
relayTransmitCount- Number of retransmissions on advertising bearer for each Network PDU relayed by the noderelayIntervalSteps- 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
-