6 #ifndef WIFI_CONFIGURATOR_HPP__
7 #define WIFI_CONFIGURATOR_HPP__
11 #include <DNSServer.h>
13 #include <ESPAsyncWebServer.h>
14 #include "ArduinoJson.h"
15 #include "AsyncJson.h"
39 AsyncWebServer *http_backend,
40 DNSServer *dns_server);
52 void print_station_info();
56 AsyncWebServer *http_backend;
57 DNSServer *dns_server;
59 nvs_handle_t _nvs_handle;
60 uint8_t _restart_counter = 0;
63 AsyncCallbackJsonWebHandler *_http_request_handler =
nullptr;
65 void _counting_device_restart();
75 bool _reconfigure_reconnect_network_interface(
NetworkConfig &conf);
80 bool _on_request_do_configuration(JsonObject &json_obj, AsyncWebServerRequest *request);
83 void _send_config_response(
NetworkConfig &conf, AsyncWebServerRequest *request);
86 void _register_http_api();
89 void _setup_dns_server();
92 void _setup_mdns_server();
Reconnect to or set up a WiFi network connection.
Definition: wifi_configurator.hpp:36
void begin()
Reconnect to or set up a WiFi network connection.
Definition: wifi_configurator.cpp:62
Application state containing data and settings model.
Definition: app_state_model.hpp:50
WiFi network configuration structure with default values.
Definition: app_config.hpp:34