Qt NFC

NFC API 在啓用 NFC 的設備之間提供連接。

目前,API 支持在 Android ,和 Linux 使用 Neard v0.14 或更高版本。

概述

NFC is an extremely short-range (less than 20 centimeters) wireless technology and has a maximum transfer rate of 424 kbit/s. NFC is ideal for transferring small packets of data when two devices are touched together.

The NFC API provides APIs for interacting with NFC Forum Tags and NFC Forum Devices, including target detection and loss, registering NDEF message handlers, reading and writing NDEF messages on NFC Forum Tags and sending tag specific commands.

快速入門

要使用 C++ 庫在應用程序,添加以下配置選項到 .pro 文件:

QT += nfc
					

要在應用程序中使用模塊的類,需要以下 import 語句在 .qml 文件:

import QtNfc 5.2
					
					

指南

參考

日誌類彆

The QtNfc 模塊導齣下列 日誌類彆 :

日誌類彆 描述
qt.nfc.neard 啓用 Neard/Linux 實現的日誌

範例