feat(factory-cli): add Wi-Fi credential management commands
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
#include "esp_err.h"
|
||||
#include <stdbool.h>
|
||||
#include <stddef.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
@@ -26,6 +27,17 @@ esp_err_t wifi_portal_init_defaults(const char *seed_ssid, const char *seed_pass
|
||||
*/
|
||||
bool wifi_portal_has_saved_credentials(void);
|
||||
|
||||
/**
|
||||
* @brief Copy saved SSIDs in persistent priority order.
|
||||
*
|
||||
* Passwords are intentionally not exposed. `out_ssids` contains `capacity`
|
||||
* rows of `ssid_stride` bytes. `out_count` receives the total saved count.
|
||||
*/
|
||||
esp_err_t wifi_portal_get_saved_ssids(char *out_ssids,
|
||||
size_t ssid_stride,
|
||||
size_t capacity,
|
||||
size_t *out_count);
|
||||
|
||||
/**
|
||||
* @brief Check whether the STA interface is connected (has an IP).
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user