19 lines
493 B
C
19 lines
493 B
C
#ifndef WIFI_MANAGER_H_GUARD
|
|
#define WIFI_MANAGER_H_GUARD
|
|
|
|
#include <esp_wifi_types.h>
|
|
|
|
void wifi_manager_init();
|
|
|
|
|
|
void *wifi_manager_get_ap_netif();
|
|
void *wifi_manager_get_sta_netif();
|
|
|
|
typedef void (*wifi_manager_scan_done_cb)(uint16_t ap_found, wifi_ap_record_t *record, void *arg);
|
|
int wifi_manager_get_scan_list(uint16_t *number, wifi_ap_record_t *aps);
|
|
int wifi_manager_connect(const char *ssid, const char *password);
|
|
int wifi_manager_disconnect(void);
|
|
|
|
|
|
|
|
#endif //WIFI_MANAGER_H_GUARD
|