Home assistant NFC reader

Hi forum
i really really need some help!!

im trying to do this project GitHub - klaasnicolaas/ha_nfc_scanner: Scan NFC tags/cards with MQTT action to Home Assistant

but has run into some trouble and it seems the owner is not responding to created issues!

so i have succesfully uploaded the code :
ha_nfc_scanner.ino (Also attached)
config.h (Also attached)
and can scan tags (change mode by setting readUIDMode to true, in the ha_nfc_scanner.ino file)
so far so good..

So i have 2 tags i want to play with or test with
and have coded these uid into the config file:

#define NUM_ACCEPTED_UIDS 2 //<-----------------CHANGE THIS IF ADDING CARDS!!
NFCTag NFCTags[NUM_ACCEPTED_UIDS] = {
  // It is neccessary to account for UID length since a 7 byte ID could contain a 4 byte ID, which would cause a misfire
 //  #0    #1    #2    #3    #4    #5    #6   #Tagname
  {{0xA, 0xE0, 0x39, 0x16}, "ChipO", false, 0, false, {0}},
  {{0xAB, 0x55, 0xE, 0x1C}, "CardO", false, 0, false, {0}}
};

here comes the trouble...
Only ONE (always the first tag) will be sent to my MQTT no matter what i do..

My setup / hw is :
NodeMcu Lua WIFI Internet Things Development Board ESP8266 CP2102 for Arduino

NXP PN532 NFC RFID Module V3 Kits Reader Writer For Arduino Android Phone Module
https://www.ebay.com/itm/NXP-PN532-NFC-RFID-Module-V3-Kits-Reader-Writer-For-Arduino-Android-Phone-Module/263200023288?ssPageName=STRK%3AMEBIDX%3AIT&_trksid=p2057872.m2749.l2649

PLEASE HELP A NOOB OUT :slight_smile:

Thanks in advise

ha_nfc_scanner.ino (10.5 KB)

config.h (1.51 KB)

You'll probably do better if you post your code in the forum. Many members are reluctant to follow links off the Arduino site.

wildbill:
You'll probably do better if you post your code in the forum. Many members are reluctant to follow links off the Arduino site.

Hi

I thought this was a part of the forum? :smiley:
Where will you sugest? Thanks in advise :smiley:

You posted a link to your code. Post it inline or attach it.