java.lang.Object
org.openremote.agent.protocol.bluetooth.mesh.transport.MeshMessage
org.openremote.agent.protocol.bluetooth.mesh.transport.GenericLevelSet

public class GenericLevelSet extends MeshMessage
To be used as a wrapper class when creating a GenericLevelSet message.
  • Field Details

    • LOG

      public static final Logger 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

    • GenericLevelSet

      public GenericLevelSet(ApplicationKey appKey, int level, int tId) throws IllegalArgumentException
      Constructs GenericLevelSet message.
      Parameters:
      appKey - ApplicationKey key for this message
      level - Level value
      tId - Transaction id which must be incremented for every message
      Throws:
      IllegalArgumentException - if any illegal arguments are passed
    • GenericLevelSet

      public GenericLevelSet(ApplicationKey appKey, Integer transitionSteps, Integer transitionResolution, Integer delay, int level, int tId) throws IllegalArgumentException
      Constructs GenericLevelSet message.
      Parameters:
      appKey - ApplicationKey key for this message
      transitionSteps - Transition steps for the level
      transitionResolution - Transition resolution for the level
      delay - Delay for this message to be executed 0 - 1275 milliseconds
      level - Level of the GenericLevelModel
      tId - Transaction id
      Throws:
      IllegalArgumentException - if any illegal arguments are passed
  • Method Details

    • getOpCode

      public int getOpCode()
      Description copied from class: MeshMessage
      Returns the opCode of this message
      Specified by:
      getOpCode in class MeshMessage
      Returns:
      opcode
    • getAkf

      public final int getAkf()
    • getAid

      public final int getAid()
    • getAppKey

      public final ApplicationKey getAppKey()
      Returns the app key used in this message.
      Returns:
      app key
    • getParameters

      public final byte[] getParameters()