Starts or stops the Publishing State of an NDEF Message to another Device or Tag.
When an NDEF message is ready to be transmitted, it needs to be set to Start by the sender device and to Stop after the transfer is done.
Parameters
State numeric
Specifies whether to start or stop publishing a message.
It can be one of:
-
1 - Start
Starts the publishing of the NDEF Message.
When a device or tag is in range and the message was written, NFC Message Send Event is triggered and you can set the state to Stop if no further writing is to be done.
-
2 - Stop
Stops the publishing of the NDEF Message.
You should set this state when no further writing is required.
Message Destination numeric
Specifies where the message should be sent to.
It can be one of:
-
1 - Another NFC device
The NDEF Message will be written only when another NFC device is in range.
-
2 - Write to an NFC tag
The NDEF Message will be written only when an NFC tag is in range.
NDEF Message string
NDEF message to be sent to another device or written in an NFC Tag.
This Message should have been previously created by NFC Create Ndef Message.
|
- If you want to write an NDEF message to a tag or send it to another device, you use this action to start publishing the message. If the message is successfully sent to another device or tag, the event NFC Message Sent is triggered. At this point you can let the device in a publishing state so it can send the message to another device/tag or you can call this action to Stop publishing so no more messages are sent.
|
Updated: 12/16/2016 12:14 PM |