25 #ifndef __ESP_SOFTAP_H__
26 #define __ESP_SOFTAP_H__
bool wifi_softap_dhcps_start(void)
Enable the ESP8266 soft-AP DHCP server.
bool wifi_softap_set_config(struct softap_config *config)
Set the configuration of the WiFi soft-AP and save it to the Flash.
bool wifi_softap_dhcps_stop(void)
Disable the ESP8266 soft-AP DHCP server. The DHCP is enabled by default.
AUTH_MODE
Definition: esp_wifi.h:59
uint32 wifi_softap_get_dhcps_lease_time(void)
Get ESP8266 soft-AP DHCP server lease time.
uint8 ssid[32]
Definition: esp_softap.h:52
uint8 password[64]
Definition: esp_softap.h:53
Definition: esp_misc.h:88
uint8 ssid_hidden
Definition: esp_softap.h:57
uint8 channel
Definition: esp_softap.h:55
Definition: esp_softap.h:51
bool wifi_softap_get_config_default(struct softap_config *config)
Get the configuration of the ESP8266 WiFi soft-AP saved in the flash.
bool wifi_softap_set_config_current(struct softap_config *config)
Set the configuration of the WiFi soft-AP; the configuration will not be saved to the Flash...
struct station_info * wifi_softap_get_station_info(void)
Get the information of stations connected to the ESP8266 soft-AP, including MAC and IP...
uint8 ssid_len
Definition: esp_softap.h:54
bool wifi_softap_set_dhcps_lease(struct dhcps_lease *please)
Set the IP range of the ESP8266 soft-AP DHCP server.
AUTH_MODE authmode
Definition: esp_softap.h:56
bool wifi_softap_get_config(struct softap_config *config)
Get the current configuration of the ESP8266 WiFi soft-AP.
dhcp_status
Definition: esp_misc.h:83
struct ip_addr ip
Definition: esp_softap.h:66
bool wifi_softap_set_dhcps_offer_option(uint8 level, void *optarg)
Set the ESP8266 soft-AP DHCP server option.
bool wifi_softap_get_dhcps_lease(struct dhcps_lease *please)
Query the IP range that can be got from the ESP8266 soft-AP DHCP server.
uint8 max_connection
Definition: esp_softap.h:58
STAILQ_ENTRY(station_info) next
bool wifi_softap_set_dhcps_lease_time(uint32 minute)
Set ESP8266 soft-AP DHCP server lease time, default is 120 minutes.
uint8 bssid[6]
Definition: esp_softap.h:65
uint16 beacon_interval
Definition: esp_softap.h:59
enum dhcp_status wifi_softap_dhcps_status(void)
Get the ESP8266 soft-AP DHCP server status.
bool wifi_softap_reset_dhcps_lease_time(void)
Reset ESP8266 soft-AP DHCP server lease time which is 120 minutes by default.
Definition: esp_softap.h:62
void wifi_softap_free_station_info(void)
Free the space occupied by station_info when wifi_softap_get_station_info is called.
uint8 wifi_softap_get_station_num(void)
Get the number of stations connected to the ESP8266 soft-AP.