67 return "EntryButtonPressed";
69 return "EntryButtonReleased";
71 return "EntryLightBarrierBlocked";
73 return "EntryLightBarrierCleared";
75 return "ExitLightBarrierBlocked";
77 return "ExitLightBarrierCleared";
79 return "CapacityAvailable";
81 return "CapacityFull";
83 return "TicketIssued";
85 return "TicketValidated";
87 return "TicketRejected";
89 return "EntryBarrierOpened";
91 return "EntryBarrierClosed";
93 return "ExitBarrierOpened";
95 return "ExitBarrierClosed";
97 return "CarEnteredParking";
99 return "CarExitedParking";
101 return "BarrierTimeout";
EventType
Event types in the parking system.
Definition Event.h:9
@ EntryLightBarrierCleared
@ EntryLightBarrierBlocked
@ ExitLightBarrierCleared
@ ExitLightBarrierBlocked
const char * eventTypeToString(EventType type)
Get string representation of EventType.
Definition Event.h:64
std::variant< std::monostate, uint32_t, bool > EventPayload
Event payload types.
Definition Event.h:40
EventType
Definition hal_state_machine.h:16
Event structure.
Definition Event.h:45
Event()
Definition Event.h:50
uint64_t timestamp
Definition Event.h:47
Event(EventType t, uint64_t ts=0, EventPayload p=std::monostate{})
Definition Event.h:55
EventType type
Definition Event.h:46
EventPayload payload
Definition Event.h:48