Interface MeshStatusCallbacks

All Known Implementing Classes:
BluetoothMeshNetwork

public interface MeshStatusCallbacks
Callbacks to notify the status of the mesh messages
  • Method Details

    • onTransactionFailed

      void onTransactionFailed(int dst, boolean hasIncompleteTimerExpired)
      Notifies if a transaction has failed

      As of now this is only triggered if the incomplete timer has expired for a given segmented message. The incomplete timer will wait for a minimum of 10 seconds on receiving a segmented message. If all segments are not received during this period, that transaction shall be considered as failed.

      Parameters:
      dst - Unique dst address of the device
      hasIncompleteTimerExpired - Flag that notifies if the incomplete timer had expired
    • onUnknownPduReceived

      void onUnknownPduReceived(int src, byte[] accessPayload)
      Notifies if an unknown pdu was received
      Parameters:
      src - Address where the message originated from
      accessPayload - Access payload of the message
    • onBlockAcknowledgementProcessed

      void onBlockAcknowledgementProcessed(int dst, ControlMessage message)
      Notifies when a block acknowledgement has been processed

      This callback is invoked after MeshManagerCallbacks.onMeshPduCreated(byte[]) where a mesh pdu is created.

      Parameters:
      dst - Destination address to which the block ack was sent
      message - Control message containing the block acknowledgement
    • onBlockAcknowledgementReceived

      void onBlockAcknowledgementReceived(int src, ControlMessage message)
      Notifies if a block acknowledgement was received
      Parameters:
      src - Source address from which the block ack was received
      message - Control message containing the block acknowledgement
    • onMeshMessageProcessed

      void onMeshMessageProcessed(int dst, MeshMessage meshMessage)
      Callback to notify the mesh message has been processed to be sent to the bearer

      This callback is invoked after MeshManagerCallbacks.onMeshPduCreated(byte[]) where a mesh pdu is created and is ready to be sent.

      Parameters:
      dst - Destination address to be sent
      meshMessage - MeshMessage containing the message that was sent
    • onMeshMessageReceived

      void onMeshMessageReceived(int src, MeshMessage meshMessage)
      Callback to notify that a mesh status message was received from the bearer
      Parameters:
      src - Source address where the message originated from
      meshMessage - MeshMessage containing the message that was received
    • onMessageDecryptionFailed

      void onMessageDecryptionFailed(String meshLayer, String errorMessage)
      Callback to notify if the decryption failed of a received mesh message
      Parameters:
      meshLayer - Mesh layer name
      errorMessage - Error message