Class MeshManagerApi
java.lang.Object
org.openremote.agent.protocol.bluetooth.mesh.MeshManagerApi
- All Implemented Interfaces:
MeshMngrApi
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMeshManagerApi
(ScheduledExecutorService scheduledExecutorService) The mesh manager api constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
createMeshPdu
(int dst, MeshMessage meshMessage) Sends the specified mesh message specified within theMeshMessage
objectdataAsHexString
(byte[] data) final void
handleNotifications
(int mtuSize, byte[] data) Handles notifications received by the client.final void
handleWriteCallbacks
(int mtuSize, byte[] data) Must be called to handle provisioning statesfinal void
resetMeshNetwork
(int provisionerAddress) void
setMeshManagerCallbacks
(MeshManagerCallbacks callbacks) Sets theMeshManagerCallbacks
listenervoid
setMeshStatusCallbacks
(MeshStatusCallbacks callbacks) Sets theMeshManagerCallbacks
listener 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:MeshMngrApi
Sets theMeshManagerCallbacks
listener- Specified by:
setMeshManagerCallbacks
in interfaceMeshMngrApi
- Parameters:
callbacks
- callbacks
-
setMeshStatusCallbacks
Description copied from interface:MeshMngrApi
Sets theMeshManagerCallbacks
listener to return mesh status callbacks.- Specified by:
setMeshStatusCallbacks
in interfaceMeshMngrApi
- Parameters:
callbacks
- callbacks
-
handleWriteCallbacks
public final void handleWriteCallbacks(int mtuSize, byte[] data) Description copied from interface:MeshMngrApi
Must be called to handle provisioning states- Specified by:
handleWriteCallbacks
in interfaceMeshMngrApi
- Parameters:
mtuSize
- GATT MTU sizedata
- PDU received by the client
-
handleNotifications
public final void handleNotifications(int mtuSize, byte[] data) Description copied from interface:MeshMngrApi
Handles 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:
handleNotifications
in interfaceMeshMngrApi
- Parameters:
mtuSize
- GATT MTU sizedata
- PDU received by the client
-
dataAsHexString
-
getMeshNetwork
-
createMeshPdu
Description copied from interface:MeshMngrApi
Sends the specified mesh message specified within theMeshMessage
object- Specified by:
createMeshPdu
in interfaceMeshMngrApi
- Parameters:
dst
- destination addressmeshMessage
-MeshMessage
Mesh message containing the message opcode and message parameters
-
resetMeshNetwork
public final void resetMeshNetwork(int provisionerAddress)
-