This commit is contained in:
29
main/dns_server.h
Normal file
29
main/dns_server.h
Normal file
@@ -0,0 +1,29 @@
|
||||
/*
|
||||
* 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
|
||||
Reference in New Issue
Block a user