Introduces the new graphics for the NFC writing process. Also fixes some minor display bugs. Hides the service status icons during boot time. Fixes bugs in NFC write process where mutliple parallel API calls a created. Fixes a bug where spoolman is updated if a location tag is written (which is not required or correct).
30 lines
592 B
C
30 lines
592 B
C
#ifndef NFC_H
|
|
#define NFC_H
|
|
|
|
#include <Arduino.h>
|
|
|
|
typedef enum{
|
|
NFC_IDLE,
|
|
NFC_READING,
|
|
NFC_READ_SUCCESS,
|
|
NFC_READ_ERROR,
|
|
NFC_WRITING,
|
|
NFC_WRITE_SUCCESS,
|
|
NFC_WRITE_ERROR
|
|
} nfcReaderStateType;
|
|
|
|
void startNfc();
|
|
void scanRfidTask(void * parameter);
|
|
void startWriteJsonToTag(const bool isSpoolTag, const char* payload);
|
|
|
|
extern TaskHandle_t RfidReaderTask;
|
|
extern String nfcJsonData;
|
|
extern String activeSpoolId;
|
|
extern String lastSpoolId;
|
|
extern volatile nfcReaderStateType nfcReaderState;
|
|
extern volatile bool pauseBambuMqttTask;
|
|
extern bool tagProcessed;
|
|
|
|
|
|
|
|
#endif |