java.lang.Object
org.openremote.agent.protocol.bluetooth.mesh.transport.MeshMessage
Direct Known Subclasses:
ConfigAppKeyAdd, ConfigAppKeyDelete, ConfigAppKeyUpdate, ConfigKeyRefreshPhaseSet, ConfigModelAppBind, ConfigModelPublicationGet, ConfigModelPublicationSet, ConfigModelPublicationVirtualAddressSet, ConfigModelSubscriptionAdd, ConfigModelSubscriptionDelete, ConfigModelSubscriptionDeleteAll, ConfigModelSubscriptionOverwrite, ConfigModelSubscriptionVirtualAddressAdd, ConfigModelSubscriptionVirtualAddressDelete, ConfigModelSubscriptionVirtualAddressOverwrite, ConfigNetKeyAdd, ConfigNetKeyDelete, ConfigNetKeyGet, ConfigNetKeyUpdate, ConfigProxySet, ConfigStatusMessage, GenericLevelGet, GenericLevelSet, GenericLevelSetUnacknowledged, GenericOnOffGet, GenericOnOffSet, GenericOnOffSetUnacknowledged, GenericStatusMessage, ProxyConfigAddAddressToFilter, ProxyConfigFilterStatus, ProxyConfigRemoveAddressFromFilter, ProxyConfigSetFilterType, SceneDelete, SceneRecall, SceneStore, VendorModelMessageAcked, VendorModelMessageUnacked

public abstract class MeshMessage extends Object
Abstract wrapper class for mesh message.
  • Field Details

    • mMessage

      protected Message mMessage
    • messageTtl

      protected Integer messageTtl
  • Constructor Details

    • MeshMessage

      public MeshMessage()
  • Method Details

    • getOpCode

      public abstract int getOpCode()
      Returns the opCode of this message
      Returns:
      opcode
    • getAszmic

      public final int getAszmic()
      Returns the size of message integrity check used for this message.
      Returns:
      aszmic
    • getMessage

      public Message getMessage()
      Returns the message
    • getSrc

      public int getSrc()
      Returns the source address of the message
    • getDst

      public int getDst()
      Returns the destination address of the message
    • getMessageTtl

      public Integer getMessageTtl()
      Returns the TTL set for the mesh message
      Returns:
      TTL value or null if not set.
    • setMessageTtl

      public void setMessageTtl(Integer messageTtl)
      Sets the TTL for this message. If a TTL is not specified the message will use the default ttl set for the provisioner node.
      Parameters:
      messageTtl - TTL value