#include <OzIDManager.h>
#include <OzNfcReader.h>

OzIDManager* manager;
OzNfcReader *rc522reader;

void setup()
{
  Serial.begin(115200);
  SPI.begin();

  manager = new OzIDManager;
  manager->_sendACK = true;
  manager->_checksum = true;

  OzCommunication::setIDManager(manager);

  rc522reader = new OzNfcReader(MODE::RC522, 10, 8);

  int x=1;
  manager->sendLinkSetup();
  manager->PrintWelcomeLine(rc522reader, x++,"MyRC522Nfc");
}

void loop()
{
    OzCommunication::communicate();
    rc522reader->ownLoop();
}

More information