Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ESP32: add setIP and setAPIP #2581

Merged
merged 4 commits into from
Dec 4, 2024
Merged

ESP32: add setIP and setAPIP #2581

merged 4 commits into from
Dec 4, 2024

Conversation

MaBecker
Copy link
Contributor

@MaBecker MaBecker commented Dec 3, 2024

similar to what I did for ESP8266

@MaBecker MaBecker changed the title ES32: add setIP and setAPIP ESP32: add setIP and setAPIP Dec 3, 2024
@@ -92,6 +92,8 @@ 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;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please could you move this into the setIP function? Looking at tcpip_adapter_set_ip_info I'm pretty sure it doesn't have to be a global variable so having it just in the fn will free up a bit of RAM

@gfwilliams
Copy link
Member

Looks really good, thanks! Please can you just move the variable mentioned above and I'll get this merged?

remove global var
@MaBecker
Copy link
Contributor Author

MaBecker commented Dec 3, 2024

Ups, yes it is no longer needed - thanks for checking!

@gfwilliams
Copy link
Member

Great, thanks!

@gfwilliams gfwilliams merged commit d6d1d73 into espruino:master Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants