Added SNTP and start of data logging

This commit is contained in:
2023-10-28 13:40:19 +01:00
parent cf9a549cf2
commit bbfc55a066
4 changed files with 99 additions and 12 deletions

View File

@@ -1,3 +1,12 @@
#pragma once
#include <stdbool.h>
// The idea with this function is to check if NTP time has been obtained
// at least once - and therefore time is at least vaguely accurate
// I want to call this when saving data to know whether the time is valid/trusted
// at all
bool has_ntp_time_obtained_once();
// Probably should rename this to "start networking" or something because
// it also does NTP stuff, and maybe even establish the HTTP Server stuff?
void start_wifi();