[NFC-ETH] check tag and ethernet connection

Hello !

I'm an highschool student , and I work for my "end year project
I bought an NFC shield from Adafruit.

The problem :
I use an NFC and Ethernet Shield, but the NFC library check tag as follow :

in fonction readPassiveTargetID() , program stay in an while() loop still a tag read (line 464 in lib)
and I need to check external HTTP request in the meantime.

Acccording to you , is it a good idea to integrate following code in the described while() in NFC lib ?

Client client = server.available();
is any of you have ever tried to check NFC tag while check connection with ethernet library ?

Thanking you in advance :)

Acccording to you , is it a good idea to integrate following code in the described while() in NFC lib ?

No. Instead, you should modify the library to wait for a card for only a defined period of time. If no card appears in that time, return. Then, back in loop(), you can check for a client, deal with it, and call that function again.