Skip to content

Instantly share code, notes, and snippets.

@nadilas
nadilas / readtag.c
Last active September 14, 2018 18:12 — forked from Jonty/readtag.c
Read a single tag UID using libnfc.
#include <nfc/nfc.h>
int main ()
{
nfc_device_t *nfcDev;
nfcDev = nfc_connect(NULL);
if (nfcDev == NULL) {
printf("Cannot connect to the RFID reader.\n");
return 1;