Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am samsullivan on github.
  • I am samsullivan (https://keybase.io/samsullivan) on keybase.
  • I have a public key ASDJOU0bvWZ5zp57s_tK8GNJ0MBf4jEJ4a6HUkDfDKCgZgo

To claim this, I am signing this object:

@samsullivan
samsullivan / NFC UID Test
Created December 9, 2014 16:20
Wait for NFC tag and verify against a stored UID using libnfc
#include <stdlib.h>
#include <nfc/nfc.h>
const uint8_t UID[] = {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
void
checkForTag(nfc_device *pnd, nfc_modulation nm)
{
nfc_target nt;