Lokal Leaderboard
This commit is contained in:
12
src/master.h
12
src/master.h
@@ -4,6 +4,7 @@
|
||||
#include <ESPAsyncWebServer.h>
|
||||
#include <sys/time.h>
|
||||
#include <time.h>
|
||||
#include <vector>
|
||||
|
||||
const char *ssidAP;
|
||||
const char *passwordAP = nullptr;
|
||||
@@ -24,6 +25,14 @@ struct TimerData1 {
|
||||
char RFIDUID[32] = "";
|
||||
};
|
||||
|
||||
// Struktur für lokale Zeiten (Leaderboard)
|
||||
struct LocalTime {
|
||||
String uid;
|
||||
String name;
|
||||
unsigned long timeMs;
|
||||
unsigned long timestamp;
|
||||
};
|
||||
|
||||
// Timer Struktur für Bahn 2
|
||||
struct TimerData2 {
|
||||
unsigned long startTime = 0;
|
||||
@@ -73,6 +82,9 @@ int laneConfigType = 0; // 0=Identical, 1=Different
|
||||
int lane1DifficultyType = 0; // 0=Light, 1=Heavy (difficulty)
|
||||
int lane2DifficultyType = 0; // 0=Light, 1=Heavy (difficulty)
|
||||
|
||||
// Lokales Leaderboard
|
||||
std::vector<LocalTime> localTimes;
|
||||
|
||||
// Function Declarations
|
||||
void OnDataRecv(const uint8_t *mac, const uint8_t *incomingData, int len);
|
||||
void handleLearningMode(const uint8_t *mac);
|
||||
|
||||
Reference in New Issue
Block a user