<commit_before>#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();
        if(tag.hasNdefMessage()){
                NdefMessage tagMessage = tag.getNdefMessage();
                int i;
                for (i = 0; i < tagMessage.getRecordCount()   ; i++)  {
                         //
                         NdefRecord tagRecord = tagMessage.getRecord(i);
                         int payloadLength = tagRecord.getPayloadLength();
                         char *tagMessage[payloadLength];
                         tagRecord.print();
                         
                }
        }
    }
    delay(5000);
    Particle.process();
}<commit_msg>That bit where payload is an array of bytes which are each the character you seek.. onwards to decoding that then ;<commit_after>#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();
        if(tag.hasNdefMessage()){
                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();
}
{'fraction_non_alphanumeric': 0.11181818181818182, 'fraction_numerical': 0.03636363636363636, 'mean_word_length': 1.768553459119497, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5547756', 'n_tokens_mistral': 746, 'n_tokens_neox': 663, 'n_words': 124}