32 lines
640 B
C
32 lines
640 B
C
#include <string.h>
|
|
|
|
#include "freertos/FreeRTOS.h"
|
|
#include "freertos/task.h"
|
|
|
|
#include "esp_log.h"
|
|
#include "esp_heap_caps.h"
|
|
#include "esp_spi_flash.h"
|
|
|
|
#include "driver/gpio.h"
|
|
#include "driver/spi_common.h"
|
|
#include "driver/spi_master.h"
|
|
|
|
typedef struct wifi_man_ap_info {
|
|
|
|
} wifi_man_ap_info_t;
|
|
|
|
static struct wifi_man_ap_store {
|
|
uint8_t count;
|
|
|
|
struct wifi_man_ap_info aps[CONFIG_WIFI_MANAGER_MAX_AP];
|
|
} wifi_man_ap_store;
|
|
|
|
void wifi_man_init_config() {
|
|
spi_flash_read(CONFIG_WIFI_MANAGER_MEM_ADDR, &wifi_man_ap_store, sizeof(struct wifi_man_ap_store));
|
|
}
|
|
|
|
int wifi_man_load_config() {
|
|
uint8_t count = 0;
|
|
|
|
return count;
|
|
};
|