-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathap_scanner.h
44 lines (38 loc) · 874 Bytes
/
ap_scanner.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/**
* @file ap_scanner.h
* @author risinek ([email protected])
* @date 2021-04-05
* @copyright Copyright (c) 2021
*
* @brief Provides an interface for AP scanning functionality.
*/
#ifndef AP_SCANNER_H
#define AP_SCANNER_H
#include "esp_wifi_types.h"
/**
* @brief Linked list of wifi_ap_record_t records.
*
*/
typedef struct {
uint16_t count;
wifi_ap_record_t records[CONFIG_SCAN_MAX_AP];
} wifictl_ap_records_t;
/**
* @brief Switches ESP into scanning mode and stores result.
*
*/
void wifictl_scan_nearby_aps();
/**
* @brief Returns current list of scanned APs.
*
* @return const wifictl_ap_records_t*
*/
const wifictl_ap_records_t *wifictl_get_ap_records();
/**
* @brief Returns AP record on given index
*
* @param index
* @return const wifi_ap_record_t*
*/
const wifi_ap_record_t *wifictl_get_ap_record(unsigned index);
#endif