More on retrieving and parsing dates.
This commit is contained in:
parent
10eff684df
commit
861f9af1f9
5 changed files with 127 additions and 9 deletions
20
src/utils.h
20
src/utils.h
|
@ -1,8 +1,26 @@
|
|||
#pragma once
|
||||
|
||||
#include <chrono>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#include "pico/cyw43_arch.h"
|
||||
|
||||
static int wifi_setup_impl(uint32_t country, const std::string &ssid, const std::string &pw, bool firstTry = true);
|
||||
enum class Waste {
|
||||
Restmuell,
|
||||
GelberSack,
|
||||
Papiertonne,
|
||||
Biotonne,
|
||||
Problemstoffmobil,
|
||||
};
|
||||
|
||||
struct WasteDate {
|
||||
std::chrono::year_month_day date;
|
||||
std::vector<Waste> wasteTypes;
|
||||
};
|
||||
|
||||
std::vector<WasteDate> parseCsv(const std::string& csv);
|
||||
|
||||
static int wifi_setup_impl(uint32_t country, const std::string &ssid, const std::string &pw,
|
||||
bool firstTry = true);
|
||||
void wifi_setup();
|
Loading…
Add table
Add a link
Reference in a new issue