DeterministicESPAsyncWebServer
1.2.0
Zero-allocation, bounded-execution async HTTP server for ESP32
Loading...
Searching...
No Matches
physical.cpp
Go to the documentation of this file.
1
// Copyright (C) 2026 Douglas Quigg (dstroy0) <dquigg123@gmail.com>
2
// SPDX-License-Identifier: AGPL-3.0-or-later
3
4
/**
5
* @file physical.cpp
6
* @brief Layer 1 (Physical) — WiFi hardware initialisation implementation.
7
*
8
* `init_wifi_physical()` kicks off the association process; it returns
9
* immediately because the Arduino WiFi driver handles association
10
* asynchronously. Poll `wifi_ready()` in your setup() loop until it
11
* returns true before calling `DetWebServer::begin()`.
12
*/
13
14
#include "
physical.h
"
15
#include <WiFi.h>
16
17
bool
init_wifi_physical
(
const
char
*ssid,
const
char
*password)
18
{
19
WiFi.begin(ssid, password);
20
return
true
;
21
}
22
23
bool
wifi_ready
()
24
{
25
return
WiFi.isConnected();
26
}
wifi_ready
bool wifi_ready()
Query whether the WiFi link is up.
Definition
physical.cpp:23
init_wifi_physical
bool init_wifi_physical(const char *ssid, const char *password)
Connect to a WiFi access point.
Definition
physical.cpp:17
physical.h
Layer 1 (Physical) — WiFi radio initialisation and link-state query.
src
network_drivers
physical.cpp
Generated by
1.9.8