Close the BTP session. This method is called when the BLE transport is disconnected and so the BTP session gets closed.
Returns Promise<void>
getNextSequenceNumber
getNextSequenceNumber(): number
Increments sequence number for the packets and round it off to 0 when it reaches the maximum limit.
Returns number
handleIncomingBleData
handleIncomingBleData(data): Promise<void>
Handle incoming data from the transport layer and hand over completely received matter messages to the
ExchangeManager layer
Parameters
data: Uint8Array
ByteArray containing the data
Returns Promise<void>
sendMatterMessage
sendMatterMessage(data): Promise<void>
Send a Matter message to the transport layer, but before that encode it into a BTP packet and potentially split
it into multiple segments. This Method is indirectly called by the ExchangeManager layer when a Matter message
should be sent.
Creates a new BTP session handler