Controller B updates from A: link_peer (pairing over the wire, encrypted credential handoff, B status + commands), ESP-NOW receive/unicast, Updates page with two cards; shared header maintenance frames; docs + wiki
Firmware / build (push) Successful in 7m1s
Firmware / build (push) Successful in 7m1s
This commit is contained in:
@@ -95,6 +95,14 @@ static void loadSaved() {
|
||||
copyStr(g_saved_pass, pass.c_str(), sizeof(g_saved_pass));
|
||||
}
|
||||
|
||||
bool getSavedCredentials(char* ssid, size_t ssid_n, char* pass, size_t pass_n) {
|
||||
lock();
|
||||
copyStr(ssid, g_status.saved_ssid, ssid_n);
|
||||
unlock();
|
||||
copyStr(pass, g_saved_pass, pass_n);
|
||||
return ssid[0] != 0;
|
||||
}
|
||||
|
||||
static void storeSaved(const char* ssid, const char* pass) {
|
||||
Preferences p;
|
||||
p.begin(NVS_NAMESPACE, false);
|
||||
|
||||
Reference in New Issue
Block a user