disconnect
Ends the session with the remote device.
By default, ending a session involves sending a message to the remote device with empty data and the status code set to 20, meaning session termination as per ISO/IEC 18013-5. This can be configured using setSendSessionTerminationMessage and setUseTransportSpecificSessionTermination.
Some transports - such as BLE - supports a transport-specific session termination message instead of the generic one. By default this is not used but it can be enabled using setUseTransportSpecificSessionTermination.
After calling this the current object can no longer be used to send requests.
This method is idempotent so it is safe to call multiple times.