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
17bool init_wifi_physical(const char *ssid, const char *password)
18{
19 WiFi.begin(ssid, password);
20 return true;
21}
22
24{
25 return WiFi.isConnected();
26}
bool wifi_ready()
Query whether the WiFi link is up.
Definition physical.cpp:23
bool init_wifi_physical(const char *ssid, const char *password)
Connect to a WiFi access point.
Definition physical.cpp:17
Layer 1 (Physical) — WiFi radio initialisation and link-state query.