Changed RFID to SPI and for using 2 PN532
This commit is contained in:
@@ -1,11 +1,15 @@
|
||||
#ifndef NFC_H
|
||||
#define NFC_H
|
||||
#pragma once
|
||||
|
||||
#include <Arduino.h>
|
||||
#include <Adafruit_PN532.h>
|
||||
|
||||
void startNfc();
|
||||
void scanRfidTask(void * parameter);
|
||||
void startWriteJsonToTag(const char* payload);
|
||||
void writeJsonToTag(void *parameter);
|
||||
void scanRfidTask(void * parameter);
|
||||
void processTag(uint8_t *uid, uint8_t uidLength, uint8_t readerNumber);
|
||||
void processNfcData(uint8_t *data, String tagId);
|
||||
bool decodeNdefAndReturnJson(const byte* encodedMessage);
|
||||
|
||||
extern TaskHandle_t RfidReaderTask;
|
||||
extern String nfcJsonData;
|
||||
@@ -13,4 +17,6 @@ extern String spoolId;
|
||||
extern volatile uint8_t hasReadRfidTag;
|
||||
extern volatile bool pauseBambuMqttTask;
|
||||
|
||||
#endif
|
||||
// Function declarations
|
||||
uint16_t readTagSize(Adafruit_PN532 &pn532);
|
||||
String createTagId(uint8_t *uid, uint8_t uidLength);
|
||||
Reference in New Issue
Block a user