5.6.2. network_interface_wifi_station_espressif
— Espressif WiFi Station¶
Source code: src/inet/network_interface/wifi_station_espressif.h
Test code: tst/inet/network_interface/wifi_station_espressif/main.c
Functions
-
int
network_interface_wifi_station_espressif_module_init
(void)¶ Initialize the WiFi espressif network interface module.
- Return
- zero(0) or negative error code.
-
int
network_interface_wifi_station_espressif_init
(struct network_interface_wifi_station_espressif_t *self_p, const uint8_t *ssid_p, const uint8_t *password_p)¶ Initialize given WiFi network interface with given configuration.
- Return
- zero(0) or negative error code.
- Parameters
ssid_p
-Access Point SSID.
password_p
-Access Point password.
-
int
network_interface_wifi_station_espressif_start
(struct network_interface_wifi_station_espressif_t *self_p)¶ Start given WiFi network interface.
- Return
- zero(0) or negative error code.
-
int
network_interface_wifi_station_espressif_stop
(struct network_interface_wifi_station_espressif_t *self_p)¶ Stop given WiFi network interface.
- Return
- zero(0) or negative error code.
-
int
network_interface_wifi_station_espressif_is_up
(struct network_interface_wifi_station_espressif_t *self_p)¶ Get the connection status of given network interface.
- Return
- true(1) if the network interface is up, false(0) is it is down, and otherwise negative error code.
- Parameters
self_p
-Network interface to get the connection status of.
-
int
network_interface_wifi_station_espressif_get_ip_address
(struct network_interface_wifi_station_espressif_t *self_p, struct inet_ip_addr_t *addr_p)¶ Get the ip address of given network interface.
- Return
- zero(0) if the interface has a valid IP address, otherwise negative error code.
- Parameters
self_p
-Network interface to get the connection status of.
addr_p
-IP address of the interface. Only valid if this function returns zero(0).
-
struct
network_interface_wifi_station_espressif_t
¶ Public Members
-
struct network_interface_t
network_interface
¶
-
struct network_interface_t