esp8266-fastled-desk-light icon indicating copy to clipboard operation
esp8266-fastled-desk-light copied to clipboard

Static IP ?

Open zam47 opened this issue 5 years ago • 1 comments

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

zam47 avatar Oct 11 '19 05:10 zam47

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);

NimmLor avatar Nov 26 '19 13:11 NimmLor