From 85f789e216b7bb9b05ee4d76bcda1207faf54e03 Mon Sep 17 00:00:00 2001 From: Siwat Sirichai Date: Fri, 11 Oct 2024 22:56:31 +0700 Subject: [PATCH] enable default static IP if there are no ip in fram --- ESPMegaPRO-OS-SDK/lib/ESPMegaPRO/ESPMegaCommon.hpp | 2 +- ESPMegaPRO-OS-SDK/lib/ESPMegaPRO/ESPMegaIoT.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ESPMegaPRO-OS-SDK/lib/ESPMegaPRO/ESPMegaCommon.hpp b/ESPMegaPRO-OS-SDK/lib/ESPMegaPRO/ESPMegaCommon.hpp index eb24443..137135d 100644 --- a/ESPMegaPRO-OS-SDK/lib/ESPMegaPRO/ESPMegaCommon.hpp +++ b/ESPMegaPRO-OS-SDK/lib/ESPMegaPRO/ESPMegaCommon.hpp @@ -1,3 +1,3 @@ #pragma once -#define SDK_VESRION "2.9.7" \ No newline at end of file +#define SDK_VESRION "2.9.8" \ No newline at end of file diff --git a/ESPMegaPRO-OS-SDK/lib/ESPMegaPRO/ESPMegaIoT.cpp b/ESPMegaPRO-OS-SDK/lib/ESPMegaPRO/ESPMegaIoT.cpp index 4ea5eb0..4107ba0 100644 --- a/ESPMegaPRO-OS-SDK/lib/ESPMegaPRO/ESPMegaIoT.cpp +++ b/ESPMegaPRO-OS-SDK/lib/ESPMegaPRO/ESPMegaIoT.cpp @@ -639,6 +639,7 @@ void ESPMegaIoT::loadNetworkConfig() network_config.gateway = IPAddress(192, 168, 0, 1); network_config.subnet = IPAddress(255, 255, 255, 0); network_config.dns1 = IPAddress(1, 1, 1, 1); + network_config.useStaticIp = true; } }