Class MeshManagerApi
java.lang.Object
org.openremote.agent.protocol.bluetooth.mesh.MeshManagerApi
- All Implemented Interfaces:
MeshMngrApi
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMeshManagerApi(ScheduledExecutorService executorService) The mesh manager api constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateMeshPdu(int dst, MeshMessage meshMessage) Sends the specified mesh message specified within theMeshMessageobjectdataAsHexString(byte[] data) final voidhandleNotifications(int mtuSize, byte[] data) Handles notifications received by the client.final voidhandleWriteCallbacks(int mtuSize, byte[] data) Must be called to handle provisioning statesfinal voidresetMeshNetwork(int provisionerAddress) voidsetMeshManagerCallbacks(MeshManagerCallbacks callbacks) Sets theMeshManagerCallbackslistenervoidsetMeshStatusCallbacks(MeshStatusCallbacks callbacks) Sets theMeshManagerCallbackslistener to return mesh status callbacks.
-
Field Details
-
LOG
-
MESH_PROVISIONING_UUID
-
MESH_PROXY_UUID
-
PDU_TYPE_PROVISIONING
public static final byte PDU_TYPE_PROVISIONING- See Also:
-
PDU_TYPE_NETWORK
public static final byte PDU_TYPE_NETWORK- See Also:
-
PDU_TYPE_MESH_BEACON
public static final byte PDU_TYPE_MESH_BEACON- See Also:
-
PDU_TYPE_PROXY_CONFIGURATION
public static final byte PDU_TYPE_PROXY_CONFIGURATION- See Also:
-
-
Constructor Details
-
MeshManagerApi
The mesh manager api constructor.
-
-
Method Details
-
setMeshManagerCallbacks
Description copied from interface:MeshMngrApiSets theMeshManagerCallbackslistener- Specified by:
setMeshManagerCallbacksin interfaceMeshMngrApi- Parameters:
callbacks- callbacks
-
setMeshStatusCallbacks
Description copied from interface:MeshMngrApiSets theMeshManagerCallbackslistener to return mesh status callbacks.- Specified by:
setMeshStatusCallbacksin interfaceMeshMngrApi- Parameters:
callbacks- callbacks
-
handleWriteCallbacks
public final void handleWriteCallbacks(int mtuSize, byte[] data) Description copied from interface:MeshMngrApiMust be called to handle provisioning states- Specified by:
handleWriteCallbacksin interfaceMeshMngrApi- Parameters:
mtuSize- GATT MTU sizedata- PDU received by the client
-
handleNotifications
public final void handleNotifications(int mtuSize, byte[] data) Description copied from interface:MeshMngrApiHandles notifications received by the client.This method will check if the library should wait for more data in case of a gatt layer segmentation. If its required the method will remove the segmentation bytes and reassemble the pdu together.
- Specified by:
handleNotificationsin interfaceMeshMngrApi- Parameters:
mtuSize- GATT MTU sizedata- PDU received by the client
-
dataAsHexString
-
getMeshNetwork
-
createMeshPdu
Description copied from interface:MeshMngrApiSends the specified mesh message specified within theMeshMessageobject- Specified by:
createMeshPduin interfaceMeshMngrApi- Parameters:
dst- destination addressmeshMessage-MeshMessageMesh message containing the message opcode and message parameters
-
resetMeshNetwork
public final void resetMeshNetwork(int provisionerAddress)
-