# NfcB.close(Object object)

Disconnects from an NFC-B tag

## Support

App capability | Android | iOS | PC | Harmony | Preview
---|---|---|---|---|---
Gadget | V7.15.0+ | V7.15.0+ | **X** | V7.35.0+ | Preview
Web app | V7.15.0+ | V7.15.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-B type card first
let nfcB = adapter.getNfcB();
//Close the connection
nfcB.close({
    success(res) {
        console.log(JSON.stringify(res))
    },
    fail(err) {
        console.log(`NfcB.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).