Skip to content
This repository has been archived by the owner on Sep 3, 2022. It is now read-only.

Static IP ? #2

Open
zam47 opened this issue Oct 11, 2019 · 1 comment
Open

Static IP ? #2

zam47 opened this issue Oct 11, 2019 · 1 comment

Comments

@zam47
Copy link

zam47 commented Oct 11, 2019

Hi mate .. thanks for wonderful project , i am wondering is there any way i can assign a Static IP to this code ??

@NimmLor
Copy link
Owner

NimmLor commented Nov 26, 2019

Sorry for the late response, unfortunatly static ip is not implement because it does not work reliable and heavily depends on the installed version.

Paste the following code right after the WiFi.begin(...) function in the .ino file:

IPAddress ip(192,168,0,200);   
IPAddress gateway(192,168,0,254);   
IPAddress subnet(255,255,255,0);   
WiFi.config(ip, gateway, subnet);

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants