Add wifi.enabled pref and CLI; skip WiFi when disabled or SSID blank

This commit is contained in:
Michael Graff
2026-09-06 21:56:25 -05:00
parent 98cf4f3332
commit eb2ab10de0
3 changed files with 64 additions and 43 deletions
+2
View File
@@ -47,6 +47,7 @@ public:
#ifdef WIFI_SSID
char wifi_ssid[33] = {0}; // if empty, the compile-time WIFI_SSID is used
char wifi_pwd[64] = {0};
uint8_t wifi_enabled = 1; // 0 = never bring up WiFi (credentials may still be baked in)
#endif
private:
@@ -171,6 +172,7 @@ private:
void structure() override {
def("ssid", _parent->wifi_ssid, sizeof(_parent->wifi_ssid));
def("pwd", _parent->wifi_pwd, sizeof(_parent->wifi_pwd));
def("enabled", _parent->wifi_enabled);
}
public:
WiFiPrefs(NodePrefs* parent) : _parent(parent) { }