# NfcA.close(Object object)

Disconnects from an NFC-A tag

## Support

App capability | Android | iOS | PC | Harmony | Preview
---|---|---|---|---|---
Gadget | V3.38.0+ | V5.25.0+ | **X** | V7.35.0+ | Preview
Web app | V3.44.0+ | V5.25.0+ | **X** | V7.35.0+ | Preview

## Input
Inherits [standard object input](https://open.feishu.cn/document/uYjL24iN/ukzNy4SO3IjL5cjM), without extension property:

## Output

Inherits [standard object output](https://open.feishu.cn/document/uYjL24iN/ukzNy4SO3IjL5cjM#8c92acb8), without extension property

##  Sample code
**Notice**：This is just an example of how to use the current API. Please refer to the actual process: [NFC integration](https://open.feishu.cn/document/uYjL24iN/ugTN4YjL4UDO24CO1gjN)

```js
let adapter = tt.getNFCAdapter();
//Please make sure to scan an NFC-A type card first
let nfcA = adapter.getNfcA();
//Close the connection
nfcA.close({
    success(res) {
        console.log(JSON.stringify(res))
    },
    fail(err) {
        console.log(`NfcA.close fail: ${JSON.stringify(err)}`)
    }
});
```
Sample return object for `success`:
```json
{"errMsg":"nfcClose:ok"}
```
## Error code
If a `fail` object is returned, an [errno property](https://open.feishu.cn/document/uYjL24iN/uAjMuAjMuAjM/errno) that indicates the error code will be contained.

For more information about error codes, refer to [NFC API Error Codes](https://open.feishu.cn/document/uYjL24iN/uQzM4YjL0MDO24CNzgjN/nfc-error-codes).