dns_server.h 432 B

12345678910111213141516171819202122
  1. #pragma once
  2. #include "esp_err.h"
  3. #include <stdint.h>
  4. /**
  5. * Captive portal DNS server
  6. * Responds to all DNS queries with the specified IP address
  7. */
  8. /**
  9. * Start the DNS server for captive portal
  10. * @param redirect_ip IP address to return for all DNS queries (network byte
  11. * order)
  12. * @return ESP_OK on success
  13. */
  14. esp_err_t dns_server_start(uint32_t redirect_ip);
  15. /**
  16. * Stop the DNS server
  17. */
  18. void dns_server_stop(void);