display events in reverse chronological order

This commit is contained in:
amarofarinha 2024-09-16 12:07:33 +01:00
parent 5dc413462b
commit 2c26085160
2 changed files with 42 additions and 14 deletions

View file

@ -2,6 +2,9 @@
#define EVENTS_H
#include <Arduino.h>
#include <algorithm>
#include <vector>
#include "../utils/events.h"
/**
* @brief Replaces placeholder with content section in web page
@ -11,5 +14,10 @@
* @return String
*/
String events_processor(const String& var);
// Define a struct to hold event data
struct EventData {
EVENTS_ENUM_TYPE event_handle;
const EVENTS_STRUCT_TYPE* event_pointer;
};
#endif