Skip to content
New issue

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

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

Already on GitHub? # to your account

option to set static ip. #63

Open
ghost opened this issue Jan 30, 2018 · 0 comments
Open

option to set static ip. #63

ghost opened this issue Jan 30, 2018 · 0 comments

Comments

@ghost
Copy link

ghost commented Jan 30, 2018

Hi, all my IoT gadget are on a closed seperated network with no dhcp server.

i've set static ip in:
WiFi.h

// config static IP
IPAddress ip(192,xx,xx, x); // where xx is the desired IP Address
IPAddress gateway(1x, x, x, x); // set gateway to match your network
IPAddress subnet(255, 255, x, x); //

and before wifi.begin();
add: WiFi.config(ip, gateway, subnet);

including it as an option would be great :)
Thanks.

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

1 participant