mirror of
https://github.com/skoelle/m5stack-dashboard.git
synced 2026-09-18 00:50:24 +00:00
Initial commit
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
#pragma once
|
||||
#include <Arduino.h>
|
||||
#include <vector>
|
||||
|
||||
struct CalendarEvent {
|
||||
long id = 0;
|
||||
String summary;
|
||||
String startAt;
|
||||
String endAt;
|
||||
bool allDay = false;
|
||||
String status;
|
||||
};
|
||||
|
||||
struct CalendarData {
|
||||
bool valid = false;
|
||||
std::vector<CalendarEvent> events;
|
||||
};
|
||||
|
||||
// Fetches and parses the calendar API (already limited to next 10 events
|
||||
// server-side).
|
||||
CalendarData fetchCalendar();
|
||||
Reference in New Issue
Block a user