Class GenericOnOffSet
java.lang.Object
org.openremote.agent.protocol.bluetooth.mesh.transport.MeshMessage
org.openremote.agent.protocol.bluetooth.mesh.transport.GenericOnOffSet
To be used as a wrapper class when creating a GenericOnOffSet message.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final LoggerFields inherited from class org.openremote.agent.protocol.bluetooth.mesh.transport.MeshMessage
messageTtl, mMessage -
Constructor Summary
ConstructorsConstructorDescriptionGenericOnOffSet(ApplicationKey appKey, boolean state, int tId) Constructs GenericOnOffSet message.GenericOnOffSet(ApplicationKey appKey, boolean state, int tId, Integer transitionSteps, Integer transitionResolution, Integer delay) Constructs GenericOnOffSet message. -
Method Summary
Modifier and TypeMethodDescriptionfinal intgetAid()final intgetAkf()final ApplicationKeyReturns the app key used in this message.intReturns the opCode of this messagefinal byte[]Methods inherited from class org.openremote.agent.protocol.bluetooth.mesh.transport.MeshMessage
getAszmic, getDst, getMessage, getMessageTtl, getSrc, setMessageTtl
-
Field Details
-
LOG
-
GENERIC_TRANSITION_STEP_0
public static final int GENERIC_TRANSITION_STEP_0- See Also:
-
GENERIC_TRANSITION_STEP_1
public static final int GENERIC_TRANSITION_STEP_1- See Also:
-
GENERIC_TRANSITION_STEP_2
public static final int GENERIC_TRANSITION_STEP_2- See Also:
-
GENERIC_TRANSITION_STEP_3
public static final int GENERIC_TRANSITION_STEP_3- See Also:
-
-
Constructor Details
-
GenericOnOffSet
public GenericOnOffSet(ApplicationKey appKey, boolean state, int tId) throws IllegalArgumentException Constructs GenericOnOffSet message.- Parameters:
appKey-ApplicationKeykey for this messagestate- Boolean state of the GenericOnOffModeltId- Transaction id- Throws:
IllegalArgumentException- if any illegal arguments are passed
-
GenericOnOffSet
public GenericOnOffSet(ApplicationKey appKey, boolean state, int tId, Integer transitionSteps, Integer transitionResolution, Integer delay) Constructs GenericOnOffSet message.- Parameters:
appKey-ApplicationKeykey for this messagestate- Boolean state of the GenericOnOffModeltId- Transaction idtransitionSteps- Transition steps for the leveltransitionResolution- Transition resolution for the leveldelay- Delay for this message to be executed 0 - 1275 milliseconds- Throws:
IllegalArgumentException- if any illegal arguments are passed
-
-
Method Details
-
getOpCode
public int getOpCode()Description copied from class:MeshMessageReturns the opCode of this message- Specified by:
getOpCodein classMeshMessage- Returns:
- opcode
-
getAkf
public final int getAkf() -
getAid
public final int getAid() -
getAppKey
Returns the app key used in this message.- Returns:
- app key
-
getParameters
public final byte[] getParameters()
-