Goal: Create a beginNFCReading action that sends a message containing the ID of a detected NFC tag.
To achieve this the following code can be used:
{
"type": "beginNFCReading",
"params": {
"onTagActions": [
{
"type": "showMessage",
"params": {
"text": "ID was {{id}}"
}
}
]
}
}
When an NFC tag is detected, the showMessage action is fired, which displays the ID of the tag.