feat: nfc-reader #15

Merged
Clement merged 5 commits from feat/nfc-reader into develop 2024-01-19 11:01:18 +00:00
3 changed files with 3 additions and 18 deletions
Showing only changes of commit 4e8e916e5e - Show all commits

View File

@ -4,6 +4,7 @@
; Hardware Serial baud rate
; Also available in the code as `MONITOR_SPEED`
monitor_speed = 115200
NFC_ADDR = 0x28
; Software Config
; note: additionnal flags are added by Platform.io (see total amount in `.vscode/c_cpp_properties.json` in the `defines` section)

View File

@ -1,11 +1,4 @@
/*
** EPITECH PROJECT, 2024
** T-IOT-901_convoyor
** File description:
** NfcReader
*/
#include "NfcReader.hpp"
#include "NfcReader.h"
NfcReader::NfcReader(int i2c_adress)
{
@ -13,8 +6,6 @@ NfcReader::NfcReader(int i2c_adress)
this->mfrc522->PCD_Init();
}
NfcReader::~NfcReader() {}
String NfcReader::ReadNfc()
{
this->uid.clear();

View File

@ -1,10 +1,3 @@
/*
** EPITECH PROJECT, 2024
** T-IOT-901_convoyor
** File description:
** NfcReader
*/
#ifndef NFCREADER_HPP_
#define NFCREADER_HPP_
@ -15,7 +8,7 @@
class NfcReader {
public:
NfcReader(int i2c_adress);
~NfcReader();
~NfcReader() = default;
String ReadNfc();