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

EspruinoWiFi should have setIP for static IP addresses #363

Closed
gfwilliams opened this issue Jun 2, 2017 · 1 comment
Closed

EspruinoWiFi should have setIP for static IP addresses #363

gfwilliams opened this issue Jun 2, 2017 · 1 comment

Comments

@gfwilliams
Copy link
Member

It's not implemented at the moment, but it should be pretty easy. A workaround for now should be just:

wifi.at.cmd('AT+CIPSTA="192.168.1.160","192.168.1.1","255.255.255.0"\r\n', 1000, function() {
  // done now
});
// IP, gateway, netmask
@trusktr
Copy link

trusktr commented Jun 2, 2017

Cool! This works, I can save it in a function. Thanks!

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

No branches or pull requests

2 participants