Skip to content

Commit

Permalink
ESP32: add setIP and setAPIP
Browse files Browse the repository at this point in the history
remove global var
  • Loading branch information
MaBecker committed Dec 3, 2024
1 parent 1306664 commit f103d6d
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions libs/network/esp32/jswrap_esp32_network.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit f103d6d

Please sign in to comment.