Program Listing for File Credentials.h¶
↰ Return to documentation for file (components/NVS/src/Credentials.h
)
#ifndef NVS_CREDENTIALS_H
#define NVS_CREDENTIALS_H
#include "defaults.h"
#include "esp_system.h"
struct store_credentials_t {
char nvs_username[MAX_USER_NAME_LENGTH];
char nvs_password[MAX_USER_PASSWORD_LENGTH];
};
namespace credentials {
esp_err_t setInitialCredentials();
esp_err_t getCredentials(store_credentials_t* user_credentials);
bool credentialCompare(const char* a, const char* b);
esp_err_t saveNewCredentials(store_credentials_t credentials);
} // namespace credentials
#endif //