MdocTransportStats

data class MdocTransportStats(val transportType: MdocTransportType, val role: MdocRole, val bytesSent: Long = 0, val bytesReceived: Long = 0, val numMessagesSent: Int = 0, val numMessagesReceived: Int = 0, val warnings: List<TransportWarning> = emptyList(), val bleScanningTime: Duration? = null, val bleConnectingTime: Duration? = null, val bleUsingL2cap: Boolean? = null, val bleL2capPsmInEngagement: Boolean? = null, val bleNegotiatedMtu: Int? = null, val bleMtuInferredFromWrite: Boolean? = null, val bleNumScanRestarts: Int? = null, val bleNumGattConnectRetries: Int? = null, val bleNumMtuRequestRetries: Int? = null, val bleNumServiceDiscoveryRetries: Int? = null, val bleNumCharacteristicDiscoveryRetries: Int? = null, val bleNumCharacteristicReadRetries: Int? = null, val bleNumDescriptorWriteRetries: Int? = null, val bleNumL2capConnectRetries: Int? = null, val bleNumChunksSent: Int? = null, val bleNumChunksReceived: Int? = null, val nfcHybridNumSentViaNfc: Int? = null, val nfcHybridNumSentViaTransport: Int? = null, val nfcHybridNumReceivedFirstOnNfc: Int? = null, val nfcHybridNumReceivedFirstOnTransport: Int? = null, val nfcDisconnectedDuringTransaction: Boolean? = null)

Diagnostic and performance statistics for an MdocTransport instance.

Constructors

Link copied to clipboard
constructor(transportType: MdocTransportType, role: MdocRole, bytesSent: Long = 0, bytesReceived: Long = 0, numMessagesSent: Int = 0, numMessagesReceived: Int = 0, warnings: List<TransportWarning> = emptyList(), bleScanningTime: Duration? = null, bleConnectingTime: Duration? = null, bleUsingL2cap: Boolean? = null, bleL2capPsmInEngagement: Boolean? = null, bleNegotiatedMtu: Int? = null, bleMtuInferredFromWrite: Boolean? = null, bleNumScanRestarts: Int? = null, bleNumGattConnectRetries: Int? = null, bleNumMtuRequestRetries: Int? = null, bleNumServiceDiscoveryRetries: Int? = null, bleNumCharacteristicDiscoveryRetries: Int? = null, bleNumCharacteristicReadRetries: Int? = null, bleNumDescriptorWriteRetries: Int? = null, bleNumL2capConnectRetries: Int? = null, bleNumChunksSent: Int? = null, bleNumChunksReceived: Int? = null, nfcHybridNumSentViaNfc: Int? = null, nfcHybridNumSentViaTransport: Int? = null, nfcHybridNumReceivedFirstOnNfc: Int? = null, nfcHybridNumReceivedFirstOnTransport: Int? = null, nfcDisconnectedDuringTransaction: Boolean? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

time spent establishing the BLE connection after scanning completes, if applicable.

Link copied to clipboard

true if L2CAP PSM was advertised in engagement rather than via GATT characteristic, or null if not a BLE transport.

Link copied to clipboard

true if bleNegotiatedMtu was inferred from an incoming GATT write rather than onMtuChanged, or null if not a BLE transport.

Link copied to clipboard

negotiated BLE GATT ATT MTU, if GATT was used.

Link copied to clipboard

number of GATT characteristic discovery retries after initial failure, or null if not acting as a BLE central.

Link copied to clipboard

number of GATT characteristic read (Ident or L2CAP PSM) retries after initial failure, or null if not acting as a BLE central.

Link copied to clipboard

number of GATT characteristic chunks received, or null if not a BLE transport.

Link copied to clipboard

number of GATT characteristic chunks sent, or null if not a BLE transport.

Link copied to clipboard

number of GATT descriptor (CCCD) write retries after initial failure, or null if not acting as a BLE central.

Link copied to clipboard

number of GATT connection retries after initial failure or mid-handshake disconnect, or null if not acting as a BLE central.

Link copied to clipboard

number of L2CAP socket connection retries after initial failure, or null if not acting as a BLE central.

Link copied to clipboard

number of GATT MTU request retries after initial failure, or null if not acting as a BLE central.

Link copied to clipboard

number of times BLE scanning timed out or failed and restarted, or null if not acting as a BLE central.

Link copied to clipboard

number of GATT service discovery retries after initial failure, or null if not acting as a BLE central.

Link copied to clipboard

time spent scanning/waiting for the BLE peer before connection starts, if applicable.

Link copied to clipboard

true if BLE L2CAP was used for data transfer, or null if not a BLE transport.

Link copied to clipboard

total application-level payload bytes received over this transport.

Link copied to clipboard

total application-level payload bytes sent over this transport.

Link copied to clipboard

true if the NFC field disconnected during the transaction in NFC CCE modes, or null if not an NFC CCE transport.

Link copied to clipboard

number of messages received first on NFC in NFC CCE modes, or null if not an NFC CCE transport.

Link copied to clipboard

number of messages received first on the secondary transport in NFC CCE hybrid modes, or null if not an NFC CCE transport.

Link copied to clipboard

number of messages sent via the NFC channel in NFC CCE modes, or null if not an NFC CCE transport.

Link copied to clipboard

number of messages sent via the secondary transport in NFC CCE hybrid modes, or null if not an NFC CCE transport.

Link copied to clipboard

number of transport messages received.

Link copied to clipboard

number of transport messages sent.

Link copied to clipboard
Link copied to clipboard

the type of transport.

Link copied to clipboard

structured warnings recorded during the transport session.

Functions

Link copied to clipboard
Link copied to clipboard