Contents
Display Legacy Contents

 Print
    NFC Set Publishing State    
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.

  • 3 - Write to an NFC tag and make tag Read Only
    The NDEF Message will be written only when an NFC tag is in range and the tag will be locked making it read only.

  • 4 - Make NFC tag Read Only
    When an NFC tag is in range it will be locked making it read only.



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.
  • Making NFC tags read only is only supported on Android. It is possible that a tag gets written and the locking fails, if it goes out of range in that precise moment, but in that case the "NFC Message Sent" event will not be triggered.

See also
NFC Connect
NFC Disconnect
NFC Create NDEF Message
NFC Parse NDEF Message
NFC Get Tag Type
NFC Read Tag
NFC Write Tag
NFC Tag Send Command
RFID Connect
RFID Disconnect
RFID is Connected
RFID Get Tag List
RFID Start Inventory
RFID Stop Inventory
RFID Read Tag
RFID Write Tag
RFID Set Tag Password
RFID Set Tag Lock State
RFID Kill Tag
RFID Set Reader Parameter
RFID Get Reader Parameter
RFID Send Command
RFID Start Tag Locating
RFID Stop Tag Location
GS1 EPC Encode
GS1 EPC Decode
Jet Set Label type
Jet Read Tag ID
JET Read Tag Text
Jet Write Tag Text
HF Set Label Type
HF Read Tag ID
HF Read Tag Text
HF Write Tag Text
Intermec Connect
Intermec Disconnect
Intermec Set Label Type
Intermec Get tag ID List
Intermec Read Tag Text
Intermec Write Tag Text
Inter. Send BRI Command
Syscan Connect
Syscan Disconnect
Syscan Select Label Type
Syscan Get tag ID List
Syscan Select Tag
Syscan Read Tag Text
Syscan Write Tag Text
Syscan Send Command
Syscan Get Answer
ACG Connect
ACG Disconnect
ACG Select Label Type
ACG Get Tag ID List
ACG Select Tag
ACG Read Tag Text
ACG Write Tag text
ACG Send Command
ACG Get Answer
Baracoda Inicialize
Baracoda Uninitialize
Baracoda Connect Device
Baracoda Disconnect Device
Baracoda Read RFID Tag Data
Baracoda Write RFID Tag Data
Unitech RH767UHF Connect
Unitech RH767UHF Disconnect
Unitech RH767UHF Get Tag List
Unitech RH767UHF Read Tag
Unitech RH767UHF Write Tag
Unitech RH767UHF Send Tag Password
Unitech RH767UHF Get Parameter
Unitech RH767UHF Set Parameter
Psion RFID UHF Connect
Psion RFID UHF Disconnect
Psion RFID UHF Get Tag List
Psion RFID UHF Read Tag
Psion RFID UHF Write Tag
Psion RFID UHF Get Property
Psion RFID UHF Set Property
Psion RFID UHF Set Password
Psion RFID UHF Set Lock State
Psion RFID UHF Kill Tag
Psion RFID HF Connect
Psion RFID HF Disconnect
Psion RFID HF Set Tag Type
Psion RFID HF Get Tag List
Psion RFID HF Read Tag
Psion RFID HF Write Tag
Nordic ID Connect
Nordic ID Disconnect
Nordic ID RFID Select Tag Type
Nordic ID RFID Get Tag ID List
Nordic ID RFID Select Tag
Nordic ID RFID Read Tag
Nordic ID RFID Write Tag
CipherLab RFID Connect
CipherLab RFID Disconnect
CipherLab RFID Reset
CipherLab Read Tag ID
CipherLab Read Tag Text
CipherLab Write Tag Text
Zebra RFID Connect
Zebra RFID Disconnect
Zebra RFID Get Tag List
Zebra RFID Read Tag
Zebra RFID Write Tag
Zebra RFID Set Password
Zebra RFID Set Lock State
Zebra RFID Kill Tag
Zebra RFID Get Configuration
Zebra RFID Set Configuration
Zebra RFID GPIO
Zebra RFID Inventory
Nordic ID NUR Connect
Nordic ID NUR Disconnect
Nordic ID NUR Is Connected
Nordic ID NUR Get Tag List
Nordic ID NUR Inventory
Nordic ID NUR Read Tag
Nordic ID NUR WriteTag
Nordic ID NUR Set Password
Nordic ID NUR Set Lock State
Nordic ID NUR Kill Tag
Nordic ID NUR Get Configuration
Nordic ID NUR Set Configuration
Samples
NFC Sample
 
 
Updated: 6/2/2020 6:29 PM