Files
MTGcompanion/main/dns_server.h
Rasmus d691febfe4
All checks were successful
ESP32 Build & Release / build (push) Successful in 6m41s
on device wifi
2026-09-12 13:09:47 +02:00

30 lines
526 B
C

/*
* MTG RFID Companion - Captive Portal DNS Server
*
* Runs a lightweight UDP DNS responder on port 53 during SoftAP mode,
* redirecting all DNS lookups to 192.168.4.1 for captive portal auto-popup.
*/
#pragma once
#include "esp_err.h"
#ifdef __cplusplus
extern "C" {
#endif
/**
* @brief Start the captive portal DNS server task.
* @return ESP_OK on success.
*/
esp_err_t dns_server_start(void);
/**
* @brief Stop the captive portal DNS server task.
*/
void dns_server_stop(void);
#ifdef __cplusplus
}
#endif