1e41f4b71Sopenharmony_ci# ChangeLog of NFC JS API Changes in the Communication Subsystem
2e41f4b71Sopenharmony_ci
3e41f4b71Sopenharmony_ciCompared with OpenHarmony 3.2 Beta4, OpenHarmony 3.2.10.2(Mr) has the following API changes in the distributed data management subsystem.
4e41f4b71Sopenharmony_ci
5e41f4b71Sopenharmony_ci## cl.nfc.1 API Change
6e41f4b71Sopenharmony_ciSome NFC JS APIs in API versions 6 to 8 cannot throw error codes and need to be deprecated and deleted, and then APIs in API version 9 are used instead.
7e41f4b71Sopenharmony_ci
8e41f4b71Sopenharmony_ciYou need to adapt your application based on the following information.
9e41f4b71Sopenharmony_ci
10e41f4b71Sopenharmony_ci **Change Impacts**
11e41f4b71Sopenharmony_ci
12e41f4b71Sopenharmony_ciSome JS APIs in API versions 6 to 8 are affected. Your application needs to adapt new APIs so that it can properly implement functions in the SDK environment of the new version.
13e41f4b71Sopenharmony_ci
14e41f4b71Sopenharmony_ci**Key API/Component Changes**
15e41f4b71Sopenharmony_ci
16e41f4b71Sopenharmony_ci| Module                          | Class         | Method/Attribute/Enumeration/Constant| Change Type|
17e41f4b71Sopenharmony_ci| -------------------------------- | ------------- | ------------------- | -------- |
18e41f4b71Sopenharmony_ci| api/@ohos.nfc.cardEmulation.d.ts | cardEmulation | FeatureType         | Deprecated    |
19e41f4b71Sopenharmony_ci| api/@ohos.nfc.cardEmulation.d.ts | cardEmulation | isSupported         | Deprecated    |
20e41f4b71Sopenharmony_ci| api/@ohos.nfc.cardEmulation.d.ts | cardEmulation | hasHceCapability    | Added    |
21e41f4b71Sopenharmony_ci| api/@ohos.nfc.controller.d.ts    | nfcController | isNfcAvailable      | Deprecated    |
22e41f4b71Sopenharmony_ci| api/@ohos.nfc.controller.d.ts    | nfcController | openNfc             | Deprecated    |
23e41f4b71Sopenharmony_ci| api/@ohos.nfc.controller.d.ts    | nfcController | closeNfc            | Deprecated    |
24e41f4b71Sopenharmony_ci| api/@ohos.nfc.controller.d.ts    | nfcController | enableNfc           | Added    |
25e41f4b71Sopenharmony_ci| api/@ohos.nfc.controller.d.ts    | nfcController | disableNfc          | Added    |
26e41f4b71Sopenharmony_ci| api/@ohos.nfc.tag.d.ts           | tag           | getNfcATag          | Deprecated    |
27e41f4b71Sopenharmony_ci| api/@ohos.nfc.tag.d.ts           | tag           | getNfcBTag          | Deprecated    |
28e41f4b71Sopenharmony_ci| api/@ohos.nfc.tag.d.ts           | tag           | getNfcFTag          | Deprecated    |
29e41f4b71Sopenharmony_ci| api/@ohos.nfc.tag.d.ts           | tag           | getNfcVTag          | Deprecated    |
30e41f4b71Sopenharmony_ci| api/@ohos.nfc.tag.d.ts           | tag           | getNfcA             | Added    |
31e41f4b71Sopenharmony_ci| api/@ohos.nfc.tag.d.ts           | tag           | getNfcB             | Added    |
32e41f4b71Sopenharmony_ci| api/@ohos.nfc.tag.d.ts           | tag           | getNfcF             | Added    |
33e41f4b71Sopenharmony_ci| api/@ohos.nfc.tag.d.ts           | tag           | getNfcV             | Added    |
34e41f4b71Sopenharmony_ci| api/tag/tagSession.d.ts          | TagSession    | getTagInfo          | Deprecated    |
35e41f4b71Sopenharmony_ci| api/tag/tagSession.d.ts          | TagSession    | connectTag          | Deprecated    |
36e41f4b71Sopenharmony_ci| api/tag/tagSession.d.ts          | TagSession    | reset               | Deprecated    |
37e41f4b71Sopenharmony_ci| api/tag/tagSession.d.ts          | TagSession    | isTagConnected      | Deprecated    |
38e41f4b71Sopenharmony_ci| api/tag/tagSession.d.ts          | TagSession    | setSendDataTimeout  | Deprecated    |
39e41f4b71Sopenharmony_ci| api/tag/tagSession.d.ts          | TagSession    | getSendDataTimeout  | Deprecated    |
40e41f4b71Sopenharmony_ci| api/tag/tagSession.d.ts          | TagSession    | sendData            | Deprecated    |
41e41f4b71Sopenharmony_ci| api/tag/tagSession.d.ts          | TagSession    | getMaxSendLength    | Deprecated    |
42e41f4b71Sopenharmony_ci| api/tag/tagSession.d.ts          | TagSession    | connect             | Added    |
43e41f4b71Sopenharmony_ci| api/tag/tagSession.d.ts          | TagSession    | resetConnection     | Added    |
44e41f4b71Sopenharmony_ci| api/tag/tagSession.d.ts          | TagSession    | isConnected         | Added    |
45e41f4b71Sopenharmony_ci| api/tag/tagSession.d.ts          | TagSession    | setTimeout          | Added    |
46e41f4b71Sopenharmony_ci| api/tag/tagSession.d.ts          | TagSession    | getTimeout          | Added    |
47e41f4b71Sopenharmony_ci| api/tag/tagSession.d.ts          | TagSession    | transmit            | Added    |
48e41f4b71Sopenharmony_ci| api/tag/tagSession.d.ts          | TagSession    | getMaxTransmitSize  | Added    |
49e41f4b71Sopenharmony_ci
50e41f4b71Sopenharmony_ci**Adaptation Guide**
51e41f4b71Sopenharmony_ci
52e41f4b71Sopenharmony_ciView the following API references:
53e41f4b71Sopenharmony_ci[@ohos.nfc.cardEmulation (Standard NFC Card Emulation)](https://gitee.com/openharmony/docs/blob/master/en/application-dev/reference/apis/js-apis-cardEmulation.md)
54e41f4b71Sopenharmony_ci
55e41f4b71Sopenharmony_ci[@ohos.nfc.controller (Standard NFC)](https://gitee.com/openharmony/docs/blob/master/en/application-dev/reference/apis/js-apis-nfcController.md)
56e41f4b71Sopenharmony_ci
57e41f4b71Sopenharmony_ci[@ohos.nfc.tag (Standard NFC Tags)](https://gitee.com/openharmony/docs/blob/master/en/application-dev/reference/apis/js-apis-nfcTag.md)
58e41f4b71Sopenharmony_ci
59e41f4b71Sopenharmony_ci[tagSession (Standard NFC Tag Session)](https://gitee.com/openharmony/docs/blob/master/en/application-dev/reference/apis/js-apis-tagSession.md)
60e41f4b71Sopenharmony_ci```
61e41f4b71Sopenharmony_ci
62e41f4b71Sopenharmony_ci```
63