Interface MeshMngrApi
- All Known Implementing Classes:
MeshManagerApi
public interface MeshMngrApi
-
Method Summary
Modifier and TypeMethodDescriptionvoid
createMeshPdu
(int dst, MeshMessage meshMessage) Sends the specified mesh message specified within theMeshMessage
objectvoid
handleNotifications
(int mtuSize, byte[] data) Handles notifications received by the client.void
handleWriteCallbacks
(int mtuSize, byte[] data) Must be called to handle provisioning statesvoid
setMeshManagerCallbacks
(MeshManagerCallbacks callbacks) Sets theMeshManagerCallbacks
listenervoid
setMeshStatusCallbacks
(MeshStatusCallbacks callbacks) Sets theMeshManagerCallbacks
listener to return mesh status callbacks.
-
Method Details
-
setMeshManagerCallbacks
Sets theMeshManagerCallbacks
listener- Parameters:
callbacks
- callbacks
-
setMeshStatusCallbacks
Sets theMeshManagerCallbacks
listener 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 theMeshMessage
object- Parameters:
dst
- destination addressmeshMessage
-MeshMessage
Mesh message containing the message opcode and message parameters- Throws:
IllegalArgumentException
-