* lay groundwork for a possible future architecture * switch from feature opt-out to feature opt-in * lay groundwork for a possible future architecture * switch from feature opt-out to feature opt-in * fix USE_RTC in variant.h for rak4631_epaper and t-echo * ensure Screen.h is not included without configuration.h Co-authored-by: Peter Lawrence <12226419+majbthrd@users.noreply.github.com> Co-authored-by: Ben Meadors <benmmeadors@gmail.com>
24 lines
356 B
C
24 lines
356 B
C
#pragma once
|
|
|
|
#include "configuration.h"
|
|
#include <Arduino.h>
|
|
#include <functional>
|
|
|
|
#ifdef ARCH_ESP32
|
|
#include <DNSServer.h>
|
|
#include <WiFi.h>
|
|
#endif
|
|
|
|
/// @return true if wifi is now in use
|
|
bool initWifi(bool forceSoftAP);
|
|
|
|
void deinitWifi();
|
|
|
|
bool isWifiAvailable();
|
|
|
|
void handleDNSResponse();
|
|
|
|
bool isSoftAPForced();
|
|
|
|
uint8_t getWifiDisconnectReason();
|