From f103d6d92bb5bc48a4d1e6c0365807c9408e29dd Mon Sep 17 00:00:00 2001 From: MaBecker Date: Tue, 3 Dec 2024 23:06:29 +0100 Subject: [PATCH] ESP32: add setIP and setAPIP remove global var --- libs/network/esp32/jswrap_esp32_network.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/libs/network/esp32/jswrap_esp32_network.c b/libs/network/esp32/jswrap_esp32_network.c index b00e1a4ac..633ba93ff 100644 --- a/libs/network/esp32/jswrap_esp32_network.c +++ b/libs/network/esp32/jswrap_esp32_network.c @@ -92,9 +92,6 @@ static bool g_isStaConnected = false; #define EXPECT_CB_EXCEPTION(jsCB) jsExceptionHere(JSET_ERROR, "Expecting callback function but got %v", jsCB) #define EXPECT_OPT_EXCEPTION(jsOPT) jsExceptionHere(JSET_ERROR, "Expecting Object, got %t", jsOPT) -// Global data structure for setIP and setAPIP -tcpip_adapter_ip_info_t info; - //===== mDNS static bool mdns_started = 0; @@ -1782,9 +1779,8 @@ void jswrap_wifi_getHostByName( static void setIP(JsVar *jsSettings, JsVar *jsCallback, int interface) { char ipTmp[20]; int len = 0; - // bool rc = false; esp_err_t err; - + tcpip_adapter_ip_info_t info; memset( &info, 0, sizeof(info) ); // first check parameter