Interface MeshStatusCallbacks
- All Known Implementing Classes:
BluetoothMeshNetwork
public interface MeshStatusCallbacks
Callbacks to notify the status of the mesh messages
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onBlockAcknowledgementProcessed
(int dst, ControlMessage message) Notifies when a block acknowledgement has been processedvoid
onBlockAcknowledgementReceived
(int src, ControlMessage message) Notifies if a block acknowledgement was receivedvoid
onMeshMessageProcessed
(int dst, MeshMessage meshMessage) Callback to notify the mesh message has been processed to be sent to the bearervoid
onMeshMessageReceived
(int src, MeshMessage meshMessage) Callback to notify that a mesh status message was received from the bearervoid
onMessageDecryptionFailed
(String meshLayer, String errorMessage) Callback to notify if the decryption failed of a received mesh messagevoid
onTransactionFailed
(int dst, boolean hasIncompleteTimerExpired) Notifies if a transaction has failedvoid
onUnknownPduReceived
(int src, byte[] accessPayload) Notifies if an unknown pdu was received
-
Method Details
-
onTransactionFailed
void onTransactionFailed(int dst, boolean hasIncompleteTimerExpired) Notifies if a transaction has failedAs 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 devicehasIncompleteTimerExpired
- 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 fromaccessPayload
- Access payload of the message
-
onBlockAcknowledgementProcessed
Notifies when a block acknowledgement has been processedThis callback is invoked after
MeshManagerCallbacks.onMeshPduCreated(byte[])
where a mesh pdu is created.- Parameters:
dst
- Destination address to which the block ack was sentmessage
- Control message containing the block acknowledgement
-
onBlockAcknowledgementReceived
Notifies if a block acknowledgement was received- Parameters:
src
- Source address from which the block ack was receivedmessage
- Control message containing the block acknowledgement
-
onMeshMessageProcessed
Callback to notify the mesh message has been processed to be sent to the bearerThis 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 sentmeshMessage
-MeshMessage
containing the message that was sent
-
onMeshMessageReceived
Callback to notify that a mesh status message was received from the bearer- Parameters:
src
- Source address where the message originated frommeshMessage
-MeshMessage
containing the message that was received
-
onMessageDecryptionFailed
Callback to notify if the decryption failed of a received mesh message- Parameters:
meshLayer
- Mesh layer nameerrorMessage
- Error message
-