Class NetworkTransmitSettings
java.lang.Object
org.openremote.agent.protocol.bluetooth.mesh.utils.NetworkTransmitSettings
Class containing Network Transmit values in a
ProvisionedMeshNode-
Constructor Summary
ConstructorsConstructorDescriptionNetworkTransmitSettings(int networkTransmitCount, int networkIntervalSteps) ConstructsNetworkTransmitSettings -
Method Summary
Modifier and TypeMethodDescriptionstatic intdecodeNetworkTransmissionInterval(int interval) Decodes the Network Transmission Interval stepsintReturns the network interval stepsintReturns the Network transmission interval.intReturns the network transmit countintReturns the number of transmissions.
-
Constructor Details
-
NetworkTransmitSettings
public NetworkTransmitSettings(int networkTransmitCount, int networkIntervalSteps) ConstructsNetworkTransmitSettings- Parameters:
networkTransmitCount- Number of transmissions for each Network PDU originating from the nodenetworkIntervalSteps- Number of 10-millisecond steps between transmissions
-
-
Method Details
-
getNetworkTransmitCount
public int getNetworkTransmitCount()Returns the network transmit count -
getTransmissionCount
public int getTransmissionCount()Returns the number of transmissions. -
getNetworkIntervalSteps
public int getNetworkIntervalSteps()Returns the network interval steps -
getNetworkTransmissionInterval
public int getNetworkTransmissionInterval()Returns the Network transmission interval. -
decodeNetworkTransmissionInterval
public static int decodeNetworkTransmissionInterval(int interval) Decodes the Network Transmission Interval steps- Parameters:
interval- Interval between 10-320 ms with a step of 10 ms- Returns:
- the interval as steps
- Throws:
IllegalArgumentException- if the Network Transmission Interval is not 10-320 ms with a step of 10 ms
-