Hi,
the demo.c manages a single tag. In order to manage several tag, it has to be modified.
Assuming X-CUBE-NFC5 v1.3.0 is used, in bool demoPollNFCV( void ):
rfalNfcvListenDevice nfcvDev;
needs to be replaced by
rfalNfcvListenDevice nfcvDev[2];
err = rfalNfcvPollerCollisionResolution(1, &nfcvDev, &devCnt);
needs to be replaced by
err = rfalNfcvPollerCollisionResolution(2, nfcvDev, &devCnt);
Then, nfcvDev[0].InvRes.UID to nfcvDev[devCnt-1].InvRes.UID contain the list of UID found during Collision Resolution. This can be used for further read/write. Note: the demo reverses the UID bytes for printing purpose. For use in further read/write block(s) operation, the UID byte should not be reversed (in that case a local copy and then a byte reverse should be done for printing).
Rgds
BT