sendRequest

fun sendRequest(deviceRequestBytes: ByteArray)

Sends a request to the remote mdoc device.

The deviceRequestBytes parameter must be DeviceRequest CBOR as specified in ISO/IEC 18013-5 section 8.3 Device Retrieval.

If a response to the request is received from the remote mdoc device, the Listener.onResponseReceived method is invoked. This will usually take several seconds as it typically involves authenticating the holder and asking for their consent to release identity data.

This is usually called in response to Listener.onDeviceConnected callback.

Parameters

deviceRequestBytes

request message to the remote device