Ajout de l'algo
This commit is contained in:
@ -22,4 +22,11 @@ String NfcReader::ReadNfc()
|
||||
}
|
||||
}
|
||||
return (this->uid);
|
||||
}
|
||||
|
||||
bool NfcReader::IsNfcConnected()
|
||||
{
|
||||
Wire.beginTransmission(NFC_ADDR);
|
||||
byte error = Wire.endTransmission();
|
||||
return error == 0;
|
||||
}
|
@ -9,6 +9,7 @@ class NfcReader {
|
||||
public:
|
||||
NfcReader(int i2c_adress);
|
||||
~NfcReader() = default;
|
||||
bool IsNfcConnected();
|
||||
|
||||
String ReadNfc();
|
||||
|
||||
|
Reference in New Issue
Block a user