Modules.Nfc.TagTechnologyMifareUltralight
Provides access to MIFARE Ultralight properties and I/O operations on a Modules.Nfc.NfcTag.
Use the Modules.Nfc.createTagTechnologyMifareUltralight method to create this tag technology.
See also: MifareUltralight
Extends: Modules.Nfc.TagTechnology · Since: 1.1.0 · Platforms: android
Methods #
getMaxTransceiveLength #
Return the maximum number of bytes that can be sent with transceive.
Returns: Number
getType #
Return the MIFARE Ultralight type of the tag.
One of MIFARE_ULTRALIGHT_TYPE_ULTRALIGHT, MIFARE_ULTRALIGHT_TYPE_ULTRALIGHT_C, or MIFARE_ULTRALIGHT_TYPE_UNKNOWN.
Returns: Number
readPages #
Read 4 pages (16 bytes).
| Name | Type | Summary | Optional |
|---|---|---|---|
pageOffset | Number | Index of first page to read, starting from 0. | No |
Returns: Titanium.Buffer — 4 pages (16 bytes)
setTimeout #
Set the transceive timeout in milliseconds.
| Name | Type | Summary | Optional |
|---|---|---|---|
timeout | Number | Timeout value in milliseconds. | No |
transceive #
Send raw NfcA data to the tag and receive the response.
| Name | Type | Summary | Optional |
|---|---|---|---|
data | Titanium.Buffer | Bytes to send. | No |
Returns: Titanium.Buffer — Response bytes received.
writePage #
Write 1 page (4 bytes).
| Name | Type | Summary | Optional |
|---|---|---|---|
pageOffset | Number | Index of page to write, starting from 0. | No |
data | Titanium.Buffer | 4 bytes to write. | No |