Add RFID result handling: implement API for sending RFID write results and integrate with NFC task
This commit is contained in:
1 parent
7897496481
commit
f29e6aeded
5 files changed
+129
-21
No files matched your search
@@ -2,6 +2,7 @@
|
||||
#define NFC_H
|
||||
|
||||
#include <Arduino.h>
|
||||
#include <ESPAsyncWebServer.h>
|
||||
|
||||
typedef enum{
|
||||
NFC_IDLE,
|
||||
@@ -13,9 +14,16 @@ typedef enum{
|
||||
NFC_WRITE_ERROR
|
||||
} nfcReaderStateType;
|
||||
|
||||
struct NfcWriteParameterType {
|
||||
bool tagType;
|
||||
char* payload;
|
||||
int spoolId;
|
||||
int locationId;
|
||||
};
|
||||
|
||||
void startNfc();
|
||||
void scanRfidTask(void * parameter);
|
||||
void startWriteJsonToTag(const bool isSpoolTag, const char* payload);
|
||||
void startWriteJsonToTag(const bool isSpoolTag, const char* payload, int spoolId = 0, int locationId = 0);
|
||||
bool quickSpoolIdCheck(String uidString);
|
||||
bool readCompleteJsonForFastPath(); // Read complete JSON data for fast-path web interface display
|
||||
|
||||
|
||||
Reference in new issue
Block a user