Files
snapclient/components/network_interface/include/wifi_interface.h

25 lines
539 B
C
Raw Normal View History

#ifndef _WIFI_INTERFACE_H_
#define _WIFI_INTERFACE_H_
#include <stdbool.h>
#include "esp_netif.h"
// use wifi provisioning
#define ENABLE_WIFI_PROVISIONING CONFIG_ENABLE_WIFI_PROVISIONING
/* Hardcoded WiFi configuration that you can set via
'make menuconfig'.
*/
#if !ENABLE_WIFI_PROVISIONING
#define WIFI_SSID CONFIG_WIFI_SSID
#define WIFI_PASSWORD CONFIG_WIFI_PASSWORD
#endif
#define WIFI_MAXIMUM_RETRY CONFIG_WIFI_MAXIMUM_RETRY
bool wifi_get_ip(esp_netif_ip_info_t *ip);
void wifi_start(void);
#endif /* _WIFI_INTERFACE_H_ */