ESP-LiveControl  1.99.1
HTTP server, AJAX API backend and Vue.js web application implementing self-contained, zero-install WiFi remote control of hardware modules attached to the Espressif ESP32 SoC
Public Attributes | Static Public Attributes | List of all members
NetworkConfig Struct Reference

WiFi network configuration structure with default values. More...

#include <app_config.hpp>

Public Attributes

bool ap_mode_active = true
 
bool sta_use_dhcp = true
 
bool dns_active = true
 
bool mdns_active = false
 
char hostname [hostname_maxlen] = "eal"
 
char ssid [ssid_maxlen] = "esp_ajax_lab"
 
char psk [psk_maxlen] = "123FOO456"
 
IPAddress ip4_addr = {192, 168, 4, 1}
 
IPAddress ip4_gw = {192, 168, 4, 1}
 
IPAddress ip4_mask = {255, 255, 0, 0}
 

Static Public Attributes

static constexpr size_t ssid_maxlen = 32 + 1
 
static constexpr size_t psk_maxlen = 63 + 1
 
static constexpr size_t hostname_maxlen = 32 + 1
 
static constexpr const char * get_wifi_config_endpoint = "/get_wifi_config"
 
static constexpr const char * set_wifi_config_endpoint = "/set_wifi_config"
 
static constexpr uint16_t http_tcp_port = 80
 
static constexpr uint32_t max_reboots = 4
 
static constexpr uint32_t max_reconnections = 3
 
static constexpr uint32_t reconnection_timeout_ms = 3000
 
static constexpr uint32_t dns_ttl = 3000
 
static constexpr const char * dns_tld = ".lan"
 

Detailed Description

WiFi network configuration structure with default values.

These are to be overridden with user-set values stored on NVS.

There is NO secure boot / flash encryption activated currently. Do not share password for different services or purposes!


The documentation for this struct was generated from the following file: