20 lines
494 B
C
20 lines
494 B
C
#ifndef WIFI_STORAGE_H_GUARD
|
|
#define WIFI_STORAGE_H_GUARD
|
|
|
|
#include <stdint-gcc.h>
|
|
|
|
typedef struct nvs_wifi_credential_t {
|
|
char ssid[32];
|
|
char password[64];
|
|
} wifi_credential_t;
|
|
|
|
int wifi_data_get_last_conn_cred(wifi_credential_t *ap_credential);
|
|
|
|
int wifi_get_ap_password_of_ssid(wifi_credential_t *ap_credential);
|
|
int wifi_save_ap_credential(wifi_credential_t *ap_credential);
|
|
int wifi_rm_ap_credential(const char *ssid);
|
|
|
|
void wifi_cache_enable(uint8_t en);
|
|
|
|
|
|
#endif //WIFI_STORAGE_H_GUARD
|