draw the rest of the owl
This commit is contained in:
30
network.h
Normal file
30
network.h
Normal file
@@ -0,0 +1,30 @@
|
||||
#ifndef NETWORK_H
|
||||
#define NETWORK_H
|
||||
|
||||
#include <esp_event.h>
|
||||
|
||||
#define POSIX_TIMEZONE_STRING "CET-1CEST,M3.5.0,M10.5.0/3"
|
||||
#define SNTP_TIME_SYNC_INTERVAL_MINUTES (6 * 60) // 6 hours
|
||||
#define SNTP_SERVER "pool.ntp.org"
|
||||
|
||||
ESP_EVENT_DECLARE_BASE(SNTP_EVENT);
|
||||
|
||||
enum sntp_event_t {
|
||||
SNTP_EVENT_UNKNOWN = 0,
|
||||
SNTP_EVENT_SYNCED,
|
||||
};
|
||||
|
||||
struct wifi_network_t {
|
||||
const char ssid[32];
|
||||
const char password[32];
|
||||
};
|
||||
|
||||
struct wifi_networks_t {
|
||||
uint8_t num_nets;
|
||||
struct wifi_network_t nets[];
|
||||
};
|
||||
|
||||
void init_wifi(const struct wifi_networks_t *nets, const char *hostname);
|
||||
void init_ethernet(const char *hostname);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user