---
title: "sendMiFareISO7816Command(_:completionHandler:)"
framework: corenfc
role: symbol
role_heading: Instance Method
path: "corenfc/nfcmifaretag/sendmifareiso7816command(_:completionhandler:)"
---

# sendMiFareISO7816Command(_:completionHandler:)

Sends an ISO 7816 command APDU to the tag and receives a response APDU.

## Declaration

```swift
func sendMiFareISO7816Command(_ apdu: NFCISO7816APDU, completionHandler: @escaping @Sendable (Data, UInt8, UInt8, (any Error)?) -> Void)
```

```swift
func sendMiFareISO7816Command(_ apdu: NFCISO7816APDU) async throws -> (Data, UInt8, UInt8)
```

## Parameters

- `apdu`: An ISO 7816-4 command APDU object.
- `completionHandler`: A handler that the reader session invokes after the operation completes. The session calls completionHandler on the dispatch queue that you provided when creating the doc://com.apple.corenfc/documentation/CoreNFC/NFCTagReaderSession object. The handler has the following parameters:

## Discussion

Discussion Use this method to send commands to tags that have a mifareFamily value of either NFCMiFareFamily.plus or NFCMiFareFamily.desfire.

## See Also

### Sending Commands

- [sendMiFareCommand(commandPacket:completionHandler:)](corenfc/nfcmifaretag/sendmifarecommand(commandpacket:completionhandler:).md)
