Files
esp-air-monitor/components/wifi/wifi.h

13 lines
471 B
C

#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();