add static IP for W5500

This commit is contained in:
technyon
2023-03-05 11:19:02 +01:00
parent 2dcbf919c8
commit 6070884f74
6 changed files with 27 additions and 15 deletions

View File

@@ -14,7 +14,7 @@ unsigned long Network::_ignoreSubscriptionsTs = 0;
RTC_NOINIT_ATTR char WiFi_fallbackDetect[14];
Network::Network(Preferences *preferences, const String& maintenancePathPrefix, const bool& firstStart)
Network::Network(Preferences *preferences, const String& maintenancePathPrefix)
: _preferences(preferences)
{
_inst = this;
@@ -27,12 +27,12 @@ Network::Network(Preferences *preferences, const String& maintenancePathPrefix,
{
_maintenancePathPrefix[i] = maintenancePathPrefix.charAt(i);
}
setupDevice(firstStart);
setupDevice();
}
void Network::setupDevice(const bool& firstStart)
void Network::setupDevice()
{
_ipConfiguration = new IPConfiguration(_preferences, firstStart);
_ipConfiguration = new IPConfiguration(_preferences);
int hardwareDetect = _preferences->getInt(preference_network_hardware);
int hardwareDetectGpio = _preferences->getInt(preference_network_hardware_gpio);