Interface MeshManagerCallbacks

All Known Implementing Classes:
BluetoothMeshNetwork

public interface MeshManagerCallbacks
Implement this class in order to get the transport callbacks from the MeshManagerApi
  • Method Details

    • onNetworkLoaded

      void onNetworkLoaded(MeshNetwork meshNetwork)
      Returns the network that was loaded
      Parameters:
      meshNetwork - that was loaded
    • onNetworkUpdated

      void onNetworkUpdated(MeshNetwork meshNetwork)
      Returns the network that was updated

      This callback is invoked for every message that was sent or received as it changes the contents of the network

      Parameters:
      meshNetwork - that was loaded
    • onNetworkLoadFailed

      void onNetworkLoadFailed(String error)
      Callback that notifies in case the mesh network was unable to load
      Parameters:
      error - error
    • onNetworkImported

      void onNetworkImported(MeshNetwork meshNetwork)
      Callbacks notifying the network was imported
      Parameters:
      meshNetwork - that was loaded
    • onNetworkImportFailed

      void onNetworkImportFailed(String error)
      Callback that notifies in case the mesh network was unable to imported
      Parameters:
      error - error
    • sendProvisioningPdu

      void sendProvisioningPdu(UnprovisionedMeshNode meshNode, byte[] pdu)
      Send mesh pdu
      Parameters:
      meshNode - UnprovisionedMeshNode
      pdu - mesh pdu to be sent
    • onMeshPduCreated

      void onMeshPduCreated(byte[] pdu)
      Send mesh pdu
      Parameters:
      pdu - mesh pdu to be sent
    • getMtu

      int getMtu()
      Get mtu size supported by the peripheral node

      This is used to get the supported mtu size from the ble module, so that the messages that are larger than the supported mtu size could be segmented

      Returns:
      mtu size