enable default static IP if there are no ip in fram

This commit is contained in:
Siwat Sirichai 2024-10-11 22:56:31 +07:00
parent 5bce34bc5e
commit 85f789e216
2 changed files with 2 additions and 1 deletions

View File

@ -1,3 +1,3 @@
#pragma once #pragma once
#define SDK_VESRION "2.9.7" #define SDK_VESRION "2.9.8"

View File

@ -639,6 +639,7 @@ void ESPMegaIoT::loadNetworkConfig()
network_config.gateway = IPAddress(192, 168, 0, 1); network_config.gateway = IPAddress(192, 168, 0, 1);
network_config.subnet = IPAddress(255, 255, 255, 0); network_config.subnet = IPAddress(255, 255, 255, 0);
network_config.dns1 = IPAddress(1, 1, 1, 1); network_config.dns1 = IPAddress(1, 1, 1, 1);
network_config.useStaticIp = true;
} }
} }