Class ConfigModelAppBind
java.lang.Object
org.openremote.agent.protocol.bluetooth.mesh.transport.MeshMessage
org.openremote.agent.protocol.bluetooth.mesh.transport.ConfigModelAppBind
To be used as a wrapper class to create ConfigModelAppBind message.
-
Field Summary
FieldsFields inherited from class org.openremote.agent.protocol.bluetooth.mesh.transport.MeshMessage
messageTtl, mMessage
-
Constructor Summary
ConstructorsConstructorDescriptionConfigModelAppBind
(int elementAddress, int modelIdentifier, int appKeyIndex) Constructs ConfigModelAppBind message. -
Method Summary
Modifier and TypeMethodDescriptionfinal int
getAid()
final int
getAkf()
int
Returns the global index of the app key to be bound.int
Returns the element address to which the app key must be bound.int
Returns the model identifier to which the key is to be bound.int
Returns 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
-
-
Constructor Details
-
ConfigModelAppBind
public ConfigModelAppBind(int elementAddress, int modelIdentifier, int appKeyIndex) throws IllegalArgumentException Constructs ConfigModelAppBind message.- Parameters:
elementAddress
- Element addressmodelIdentifier
- Model idappKeyIndex
- Application key index of this message- 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 classMeshMessage
- Returns:
- opcode
-
getElementAddress
public int getElementAddress()Returns the element address to which the app key must be bound.- Returns:
- element address
-
getModelIdentifier
public int getModelIdentifier()Returns the model identifier to which the key is to be bound.- Returns:
- 16-bit or 32-bit vendor model identifier
-
getAppKeyIndex
public int getAppKeyIndex()Returns the global index of the app key to be bound.- Returns:
- app key index
-
getAkf
public final int getAkf() -
getAid
public final int getAid() -
getParameters
public final byte[] getParameters()
-