nfc_write_ndef_message_to_tag()

Write an NDEF message to an NDEF target.

Synopsis:

#include <nfc/nfc.h>
 
NFC_API nfc_result_t nfc_write_ndef_message_to_tag(nfc_target_t *tag, const nfc_ndef_message_t *msg, bool append)

Arguments:

tag

The tag handle found after a tag detection.

msg

The NDEF message to write.

append

false to overwrite any previous messages, true to append

Library:

libnfc

Description:

This function writes an NDEF message to the NDEF target returned from a successful write detection. Successive calls to this function can be used to append multiple messages.

Returns:

NFC_RESULT_SUCCESS, or one of the following: