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 int
static final int
static final int
-
Constructor Summary
ConstructorsConstructorDescriptionRelaySettings
(int relayTransmitCount, int relayIntervalSteps) ConstructsRelaySettings
-
Method Summary
Modifier and TypeMethodDescriptionstatic int
decodeRelayRetransmitInterval
(int interval) Decodes the Relay Retransmit Interval as stepsint
Returns the number of 10-millisecond steps between retransmissionsint
Returns the number of retransmissions on advertising bearer for each Network PDU relayed by the nodeint
Returns the interval interval set by the relayState settingsint
Returns the number of total retransmissions.static boolean
isRelaySupported
(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
-