Interface MeshMngrApi
- All Known Implementing Classes:
MeshManagerApi
public interface MeshMngrApi
-
Method Summary
Modifier and TypeMethodDescriptionvoidcreateMeshPdu(int dst, MeshMessage meshMessage) Sends the specified mesh message specified within theMeshMessageobjectvoidhandleNotifications(int mtuSize, byte[] data) Handles notifications received by the client.voidhandleWriteCallbacks(int mtuSize, byte[] data) Must be called to handle provisioning statesvoidsetMeshManagerCallbacks(MeshManagerCallbacks callbacks) Sets theMeshManagerCallbackslistenervoidsetMeshStatusCallbacks(MeshStatusCallbacks callbacks) Sets theMeshManagerCallbackslistener to return mesh status callbacks.
-
Method Details
-
setMeshManagerCallbacks
Sets theMeshManagerCallbackslistener- Parameters:
callbacks- callbacks
-
setMeshStatusCallbacks
Sets theMeshManagerCallbackslistener to return mesh status callbacks.- Parameters:
callbacks- callbacks
-
handleNotifications
void handleNotifications(int mtuSize, byte[] data) 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.
- Parameters:
mtuSize- GATT MTU sizedata- PDU received by the client
-
handleWriteCallbacks
void handleWriteCallbacks(int mtuSize, byte[] data) Must be called to handle provisioning states- Parameters:
mtuSize- GATT MTU sizedata- PDU received by the client
-
createMeshPdu
Sends the specified mesh message specified within theMeshMessageobject- Parameters:
dst- destination addressmeshMessage-MeshMessageMesh message containing the message opcode and message parameters- Throws:
IllegalArgumentException
-