 {
   NdefMessage m = NdefMessage();
   NdefRecord r = NdefRecord();
-  m.add(r);
+  m.addRecord(r);
   m.print();
 }
 

#include <Wire.h>
#include <Adafruit_NFCShield_I2C.h>
#include <Ndef.h>
//#include <MemoryFree.h>
#include <ArduinoUnit.h>


  r.setType(type, sizeof(type));
  uint8_t payload[] = { 0x02, 0x65, 0x6E, 0x66, 0x6F, 0x6F };
  r.setPayload(payload, sizeof(payload));
  m.addRecord(r);
  m.print();
}

