Class ConfigModelPublicationVirtualAddressSet
java.lang.Object
org.openremote.agent.protocol.bluetooth.mesh.transport.MeshMessage
org.openremote.agent.protocol.bluetooth.mesh.transport.ConfigModelPublicationVirtualAddressSet
This is the message class for setting a virtual address as a publication address
-
Field Summary
FieldsFields inherited from class org.openremote.agent.protocol.bluetooth.mesh.transport.MeshMessage
messageTtl, mMessage -
Constructor Summary
ConstructorsConstructorDescriptionConfigModelPublicationVirtualAddressSet(int elementAddress, UUID labelUuid, int appKeyIndex, boolean credentialFlag, int publishTtl, int publicationSteps, int publicationResolution, int retransmitCount, int retransmitIntervalSteps, int modelIdentifier) Constructs a ConfigModelPublicationVirtualAddressSet message -
Method Summary
Modifier and TypeMethodDescriptionfinal intgetAid()final intgetAkf()intReturns the global index of the app key to be used for publication.booleanReturns the credential flag to be used for this message.intReturns the element address to which the app key must be bound.Returns the value of the Label UUID publish addressintReturns the model identifier to which the key is to be bound.intReturns the opCode of this messagefinal byte[]intReturns the resolution for the publication steps.intReturns the number of publication steps.intReturns the number of retransmissions for each published message.intReturns the number of 50-milliseconds steps between retransmissions.intReturns the ttl of publication messagesMethods inherited from class org.openremote.agent.protocol.bluetooth.mesh.transport.MeshMessage
getAszmic, getDst, getMessage, getMessageTtl, getSrc, setMessageTtl
-
Field Details
-
LOG
-
-
Constructor Details
-
ConfigModelPublicationVirtualAddressSet
public ConfigModelPublicationVirtualAddressSet(int elementAddress, UUID labelUuid, int appKeyIndex, boolean credentialFlag, int publishTtl, int publicationSteps, int publicationResolution, int retransmitCount, int retransmitIntervalSteps, int modelIdentifier) throws IllegalArgumentException Constructs a ConfigModelPublicationVirtualAddressSet message- Parameters:
elementAddress- Element address that should publishlabelUuid- Value of the Label UUID publish addressappKeyIndex- Index of the application keycredentialFlag- Credentials flag define which credentials to be used, set true to use friendship credentials and false for master credentials. Currently supports only master credentialspublishTtl- Publication ttlpublicationSteps- Publication steps for the publication periodpublicationResolution- Publication resolution of the publication periodretransmitCount- Number of publication retransmitsretransmitIntervalSteps- Publish retransmit interval stepsmodelIdentifier- identifier for this model that will do publication- Throws:
IllegalArgumentException- for invalid arguments
-
-
Method Details
-
getOpCode
public int getOpCode()Description copied from class:MeshMessageReturns the opCode of this message- Specified by:
getOpCodein classMeshMessage- Returns:
- opcode
-
getElementAddress
public int getElementAddress()Returns the element address to which the app key must be bound.- Returns:
- element address
-
getLabelUuid
Returns the value of the Label UUID publish address -
getAppKeyIndex
public int getAppKeyIndex()Returns the global index of the app key to be used for publication.- Returns:
- app key index
-
getCredentialFlag
public boolean getCredentialFlag()Returns the credential flag to be used for this message.- Returns:
- true if friendship credentials to be used or false if master credentials is to be used.
-
getPublishTtl
public int getPublishTtl()Returns the ttl of publication messages- Returns:
- publication ttl
-
getPublicationSteps
public int getPublicationSteps()Returns the number of publication steps.- Returns:
- number of steps
-
getPublicationResolution
public int getPublicationResolution()Returns the resolution for the publication steps.- Returns:
- resolution
-
getPublishRetransmitCount
public int getPublishRetransmitCount()Returns the number of retransmissions for each published message.- Returns:
- number of retransmits
-
getPublishRetransmitIntervalSteps
public int getPublishRetransmitIntervalSteps()Returns the number of 50-milliseconds steps between retransmissions.- Returns:
- retransmit interval steps
-
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
-
getAkf
public final int getAkf() -
getAid
public final int getAid() -
getParameters
public final byte[] getParameters()
-