     Serial.begin(9600);
     Serial.println("NDEF Reader");
     nfc.begin();
-}
+    }
+
 
 void loop(void) {
     Serial.println("\nScan a NFC tag\n");

                NdefMessage tagMessage = tag.getNdefMessage();
                int i;
                for (i = 0; i < tagMessage.getRecordCount()   ; i++)  {
                         //
                         NdefRecord tagRecord = tagMessage.getRecord(i);
                         tagRecord.print();
                         int payloadLength = tagRecord.getPayloadLength();
                         byte payload[payloadLength];
                         tagRecord.getPayload(payload);
                         
                }
        }
    }
    delay(5000);
    Particle.process();
}

#include "application.h"
#include "pn532_i2c_particle/pn532_i2c_particle.h"
#include "pn532_i2c_particle/PN532.h"
#include "pn532_i2c_particle/NfcAdapter.h"
