summaryrefslogtreecommitdiff
path: root/platformio/relayctl/src/wifi.h
diff options
context:
space:
mode:
authorEvgeny Zinoviev <me@ch1p.io>2022-12-18 06:31:24 +0300
committerEvgeny Zinoviev <me@ch1p.io>2022-12-24 12:57:55 +0300
commit0a065f48be99d4ebae49de622a335f23e50c6ca0 (patch)
treeb591d91fac26e5bf7a4dd6d37178b978061ef060 /platformio/relayctl/src/wifi.h
parent022ec129bb8f511a7bf8cf537f165afce2303262 (diff)
pump-mqtt-bot: wip; relayctl: somewhat stable
Diffstat (limited to 'platformio/relayctl/src/wifi.h')
-rw-r--r--platformio/relayctl/src/wifi.h19
1 files changed, 10 insertions, 9 deletions
diff --git a/platformio/relayctl/src/wifi.h b/platformio/relayctl/src/wifi.h
index 65dbd53..37d8c02 100644
--- a/platformio/relayctl/src/wifi.h
+++ b/platformio/relayctl/src/wifi.h
@@ -14,12 +14,9 @@ struct ScanResult {
String ssid;
};
-void getConfig(ConfigData &cfg, char **ssid_dst, char **psk_dst, char **hostname_dst);
-std::shared_ptr<std::list<ScanResult>> scan();
+void getConfig(ConfigData& cfg, const char** ssid, const char** psk, const char** hostname);
-inline int8_t getRSSI() {
- return WiFi.RSSI();
-}
+std::shared_ptr<std::list<ScanResult>> scan();
inline uint32_t getIPAsInteger() {
if (!WiFi.isConnected())
@@ -27,9 +24,13 @@ inline uint32_t getIPAsInteger() {
return WiFi.localIP().v4();
}
-extern const char WIFI_AP_SSID[];
-extern const char WIFI_STA_SSID[];
-extern const char WIFI_STA_PSK[];
-extern const char NODE_ID[];
+inline int8_t getRSSI() {
+ return WiFi.RSSI();
+}
+
+extern const char AP_SSID[];
+extern const char STA_SSID[];
+extern const char STA_PSK[];
+extern const char HOME_ID[];
} \ No newline at end of file