|
ESP8266_RTOS_SDK
v1.4.0
|
ESP8266 Soft-AP APIs. More...
Data Structures | |
| struct | softap_config |
| struct | station_info |
Functions | |
| bool | wifi_softap_get_config (struct softap_config *config) |
| Get the current configuration of the ESP8266 WiFi soft-AP. More... | |
| bool | wifi_softap_get_config_default (struct softap_config *config) |
| Get the configuration of the ESP8266 WiFi soft-AP saved in the flash. More... | |
| bool | wifi_softap_set_config (struct softap_config *config) |
| Set the configuration of the WiFi soft-AP and save it to the Flash. More... | |
| 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. More... | |
| uint8 | wifi_softap_get_station_num (void) |
| Get the number of stations connected to the ESP8266 soft-AP. More... | |
| struct station_info * | wifi_softap_get_station_info (void) |
| Get the information of stations connected to the ESP8266 soft-AP, including MAC and IP. More... | |
| void | wifi_softap_free_station_info (void) |
| Free the space occupied by station_info when wifi_softap_get_station_info is called. More... | |
| bool | wifi_softap_dhcps_start (void) |
| Enable the ESP8266 soft-AP DHCP server. More... | |
| bool | wifi_softap_dhcps_stop (void) |
| Disable the ESP8266 soft-AP DHCP server. The DHCP is enabled by default. More... | |
| enum dhcp_status | wifi_softap_dhcps_status (void) |
| Get the ESP8266 soft-AP DHCP server status. More... | |
| 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. More... | |
| bool | wifi_softap_set_dhcps_lease (struct dhcps_lease *please) |
| Set the IP range of the ESP8266 soft-AP DHCP server. More... | |
| uint32 | wifi_softap_get_dhcps_lease_time (void) |
| Get ESP8266 soft-AP DHCP server lease time. More... | |
| bool | wifi_softap_set_dhcps_lease_time (uint32 minute) |
| Set ESP8266 soft-AP DHCP server lease time, default is 120 minutes. More... | |
| bool | wifi_softap_reset_dhcps_lease_time (void) |
| Reset ESP8266 soft-AP DHCP server lease time which is 120 minutes by default. More... | |
| bool | wifi_softap_set_dhcps_offer_option (uint8 level, void *optarg) |
| Set the ESP8266 soft-AP DHCP server option. More... | |
ESP8266 Soft-AP APIs.
| bool wifi_softap_dhcps_start | ( | void | ) |
Enable the ESP8266 soft-AP DHCP server.
| null |
| enum dhcp_status wifi_softap_dhcps_status | ( | void | ) |
Get the ESP8266 soft-AP DHCP server status.
| null |
| bool wifi_softap_dhcps_stop | ( | void | ) |
Disable the ESP8266 soft-AP DHCP server. The DHCP is enabled by default.
| null |
| void wifi_softap_free_station_info | ( | void | ) |
Free the space occupied by station_info when wifi_softap_get_station_info is called.
| null |
| bool wifi_softap_get_config | ( | struct softap_config * | config | ) |
Get the current configuration of the ESP8266 WiFi soft-AP.
| struct | softap_config *config : ESP8266 soft-AP configuration |
| bool wifi_softap_get_config_default | ( | struct softap_config * | config | ) |
Get the configuration of the ESP8266 WiFi soft-AP saved in the flash.
| struct | softap_config *config : ESP8266 soft-AP configuration |
| 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.
| struct | dhcps_lease *please : IP range of the ESP8266 soft-AP DHCP server. |
| uint32 wifi_softap_get_dhcps_lease_time | ( | void | ) |
Get ESP8266 soft-AP DHCP server lease time.
| null |
| struct station_info* wifi_softap_get_station_info | ( | void | ) |
Get the information of stations connected to the ESP8266 soft-AP, including MAC and IP.
| null |
| uint8 wifi_softap_get_station_num | ( | void | ) |
Get the number of stations connected to the ESP8266 soft-AP.
| null |
| bool wifi_softap_reset_dhcps_lease_time | ( | void | ) |
Reset ESP8266 soft-AP DHCP server lease time which is 120 minutes by default.
| null |
| bool wifi_softap_set_config | ( | struct softap_config * | config | ) |
Set the configuration of the WiFi soft-AP and save it to the Flash.
| struct | softap_config *config : ESP8266 soft-AP configuration |
| 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 | softap_config *config : ESP8266 soft-AP configuration |
| bool wifi_softap_set_dhcps_lease | ( | struct dhcps_lease * | please | ) |
Set the IP range of the ESP8266 soft-AP DHCP server.
| struct | dhcps_lease *please : IP range of the ESP8266 soft-AP DHCP server. |
| bool wifi_softap_set_dhcps_lease_time | ( | uint32 | minute | ) |
Set ESP8266 soft-AP DHCP server lease time, default is 120 minutes.
| uint32 | minute : lease time, uint: minute, range:[1, 2880]. |
| bool wifi_softap_set_dhcps_offer_option | ( | uint8 | level, |
| void * | optarg | ||
| ) |
Set the ESP8266 soft-AP DHCP server option.
Example:
uint8 mode = 0;
wifi_softap_set_dhcps_offer_option(OFFER_ROUTER, &mode);
| uint8 | level : OFFER_ROUTER, set the router option. |
| void* | optarg :
|
1.8.10