MikroElektronika NFC Click Element
The NFC click element is used to read NFC tags. This element is for using the MikroElektronika NFC Click board.
The NFC click is a protocol element that can be imported into the Element Toolbox through the Add Element button located in the toolbox from the Embedded tab.
Properties
The following properties can be changed for the NFC click element:
Name
The name of the element.
GPIO Driver Instance
The GPIO driver instance number to use.
I2C Driver Instance
The I2C bus used to communicate with the board.
I2C Address
The I2C address the element sends data to. Typically 0x28
.
Interrupt Pin
The platform-specific interrupt GPIO pin.
Reset Pin
The platform-specific reset GPIO pin.
Tag Poll Rate (ms)
The rate the driver polls for a new tag in milliseconds.
<blockquote class=info”>
Typically every 500ms to 1000ms provides good responsiveness without slowing down the system.
</blockquote>
Triggers
The following triggers are available to execute events from within the NFC click element:
Triggered
Execute an event when the source element connected to the NFC click triggers.
Number of Records Read
Execute an event when an NDEF message is read from a tag. The payload is the number of records in the tag as an unsigned integer.
Text Record Read
Execute an event when a well known text record is read from a tag. The payload is the data as a string.
URI Record Read
Execute an event when a well known URI record is read from a tag. The payload is the URI/URL as a string.
MIME Record Read
Execute an event when a MIME record is read from a tag. The payload is a structure with the following fields:
Field Name | Type | Size | Notes |
---|---|---|---|
Type | char[] |
62 bytes maximum | Typically a string |
TypeLen | uint16_t |
2 bytes | |
Data | char[] |
62 bytes maximum | |
DataLen | uint16_t |
2 bytes |
Abilities
The following abilities are available for the NFC click element when its source element triggers:
Trigger
Trigger the element(s) that follow the NFC click element.