Interface MeshMngrApi

All Known Implementing Classes:
MeshManagerApi

public interface MeshMngrApi
  • Method Details

    • setMeshManagerCallbacks

      void setMeshManagerCallbacks(MeshManagerCallbacks callbacks)
      Sets the MeshManagerCallbacks listener
      Parameters:
      callbacks - callbacks
    • setMeshStatusCallbacks

      void setMeshStatusCallbacks(MeshStatusCallbacks callbacks)
      Sets the MeshManagerCallbacks 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 size
      data - PDU received by the client
    • handleWriteCallbacks

      void handleWriteCallbacks(int mtuSize, byte[] data)
      Must be called to handle provisioning states
      Parameters:
      mtuSize - GATT MTU size
      data - PDU received by the client
    • createMeshPdu

      void createMeshPdu(int dst, MeshMessage meshMessage) throws IllegalArgumentException
      Sends the specified mesh message specified within the MeshMessage object
      Parameters:
      dst - destination address
      meshMessage - MeshMessage Mesh message containing the message opcode and message parameters
      Throws:
      IllegalArgumentException