🫏 Adds getter for state

This commit is contained in:
Rune Harlyk
2024-11-23 12:54:15 +01:00
parent 852ff91b7d
commit 8792c06e8a
8 changed files with 49 additions and 48 deletions
+1 -1
View File
@@ -41,7 +41,7 @@ class WiFiService : public StatefulService<WiFiSettings> {
void setupMDNS(const char *hostname);
const char *getHostname() { return _state.hostname.c_str(); }
const char *getHostname() { return state().hostname.c_str(); }
static esp_err_t handleScan(PsychicRequest *request);
static esp_err_t getNetworks(PsychicRequest *request);