nfc_is_tag_locked()
Indicate whether or not the specified tag is locked for additional NDEF message writing.
Synopsis:
#include <nfc/nfc.h>
NFC_API nfc_result_t nfc_is_tag_locked(nfc_target_t *tag, bool *locked)
Arguments:
- tag
-
The tag handle found after a tag detection.
- locked
-
true if the specified tag is read only, false if not locked against additional NDEF writes.
Library:
libnfcDescription:
This function indicates whether or not a tag is locked for additional NDEF writes.
Returns:
NFC_RESULT_SUCCESS, or one of the following:
- NFC_RESULT_INVALID_PARAMETER: A parameter is invalid.
- NFC_RESULT_OPERATION_NOT_SUPPORTED: The tag parameter is not a tag handle.