24 lines
588 B
C
24 lines
588 B
C
#ifndef WIFI_API_H_GUARD
|
|
#define WIFI_API_H_GUARD
|
|
|
|
#include <lwip/ip4_addr.h>
|
|
|
|
typedef struct wifi_api_ap_info_t {
|
|
ip4_addr_t ip;
|
|
ip4_addr_t gateway;
|
|
ip4_addr_t netmask;
|
|
char ssid[33];
|
|
char mac[6];
|
|
signed char rssi;
|
|
} wifi_api_ap_info_t;
|
|
|
|
void wifi_api_get_ap_info(wifi_api_ap_info_t *ap_info);
|
|
|
|
typedef void (*wifi_api_scan_done_cb)(uint16_t found, wifi_api_ap_info_t *aps, void *arg);
|
|
|
|
int wifi_api_trigger_scan(uint16_t *max_ap_count, wifi_api_scan_done_cb cb, void *cb_arg);
|
|
|
|
int wifi_api_get_scan_list(uint16_t *number, wifi_api_ap_info_t *ap_info);
|
|
|
|
|
|
#endif //WIFI_API_H_GUARD
|