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

PN532_I2C pn532_i2c(Wire);
NfcAdapter nfc = NfcAdapter(pn532_i2c);

void setup(void) {
    Serial.begin(9600);
    Serial.println("NDEF Reader");
    nfc.begin();
}

void loop(void) {
    Serial.println("\nScan a NFC tag\n");
    if (nfc.tagPresent())
    {
        NfcTag tag = nfc.read();
        //tag.print();
        if(tag.hasNdefMessage()){
                NdefMessage tagMessage = tag.getNdefMessage();
            
        }
        }
    }
    delay(5000);
}

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

PN532_I2C pn532_i2c(Wire);
NfcAdapter nfc = NfcAdapter(pn532_i2c);

void setup(void) {
    Serial.begin(9600);
    Serial.println("NDEF Reader");
    nfc.begin();
}

void loop(void) {
    Serial.println("\nScan a NFC tag\n");
    if (nfc.tagPresent())
    {
        NfcTag tag = nfc.read();
        //tag.print();
        if(tag.hasNdefMessage()){
                NdefMessage tagMessage = tag.getNdefMessage();
                int i;
                for (i = 0; i < tagMessage.getRecordCount()   ; i++)  {
                         //
                         NdefRecord tagRecord = tagMessage.getRecord(i);
                         tagRecord.print();
                         
                }
        }
    }
    delay(5000);
}

Update readTag to fetch just the payload from the messages on the tag
Update readTag to fetch just the payload from the messages on the tag
