arduino / ArduinoCore-primo

Arduino core for nrf52 cpu
39 stars 35 forks source link

NFC Unique Tag ID #59

Open trevordAPC opened 7 years ago

trevordAPC commented 7 years ago

Sorry to raise an issue, I don;t see any contact details.

The NFC library is lacking an example of how to retrieve the Unique Tag ID of the NFC tag on a tag presented event. Does a callback for generic events like this exist, or is there a guide as to how to perform this basic NFC function?

Thanks in advance.

kfollesdal commented 6 years ago

Any solution on this?

stedmeister commented 6 years ago

I would like an update too.

The header file suggests that the functionality has not been implemented yet. Are there any plans to add this?

nfc_t2t_lib.h:

/** \brief Function for querying an NFC parameter value.
  *
  * \note Not implemented. For future use.
  *
  * The queried value will be placed into the passed data buffer. If the buffer
  * is too small, maxDataLength will contain the required buffer size. If the
  * buffer is big enough, maxDataLength will contain the actual size of the
  * data.
  *
  * \param id         ID of the parameter to query.
  * \param data       Pointer to a buffer receiving the queried data.
  * \param maxDataLength Size of the buffer, receives actual size of queried data.
  *
  * \retval OK If the parameter was received successfully. If one of the arguments
  *            was invalid (for example, the buffer was too small), an error code
  *            is returned.
  */
NfcRetval nfcGetParameter (NfcParamId id, void *data, size_t *maxDataLength);