Skip to content

Commit 72cb58c

Browse files
committed
Remove getters for info that can be found from getConfig()
1 parent d7f1aae commit 72cb58c

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

src/MycilaESPConnect.h

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -176,9 +176,6 @@ namespace Mycila {
176176
// Returns the signal quality (percentage from 0 to 100) of the current WiFi, or -1 if not available
177177
int8_t getWiFiSignalQuality() const;
178178

179-
// the hostname passed from begin()
180-
const ESPCONNECT_STRING& getHostname() const { return _config.hostname; }
181-
182179
// SSID name used for the captive portal or in AP mode
183180
const ESPCONNECT_STRING& getAccessPointSSID() const { return _apSSID; }
184181
// Password used for the captive portal or in AP mode
@@ -190,22 +187,6 @@ namespace Mycila {
190187
Config& getConfig() { return _config; }
191188
// Set the current configuration
192189
void setConfig(const Config& config) { _config = config; }
193-
194-
// BSSID name to connect to, loaded from config or set from begin(), or from the captive portal
195-
const ESPCONNECT_STRING& getConfiguredWiFiBSSID() const { return _config.wifiBSSID; }
196-
// SSID name to connect to, loaded from config or set from begin(), or from the captive portal
197-
const ESPCONNECT_STRING& getConfiguredWiFiSSID() const { return _config.wifiSSID; }
198-
// Password for the WiFi to connect to, loaded from config or set from begin(), or from the captive portal
199-
const ESPCONNECT_STRING& getConfiguredWiFiPassword() const { return _config.wifiPassword; }
200-
// whether we need to set the ESP to stay in AP mode or not, loaded from config, begin(), or from captive portal
201-
bool hasConfiguredAPMode() const { return _config.apMode; }
202-
203-
// IP configuration used for WiFi or ETH
204-
const IPConfig& getIPConfig() const { return _config.ipConfig; }
205-
// Static IP configuration: by default, DHCP is used
206-
// The static IP configuration applies to the WiFi STA connection, except if ETH is used for ETH board, then it applies only to the Ethernet connection.
207-
void setIPConfig(const IPConfig& ipConfig) { _config.ipConfig = ipConfig; }
208-
209190
// Maximum duration that the captive portal will be active before closing
210191
uint32_t getCaptivePortalTimeout() const { return _portalTimeout; }
211192
// Maximum duration that the captive portal will be active before closing

0 commit comments

Comments
 (0)