Example line for static IP as discussed in https://github.com/toblum/McLighting/issues/187
This commit is contained in:
parent
e499033ef3
commit
1b79fa0874
1 changed files with 4 additions and 0 deletions
|
@ -320,6 +320,10 @@ void setup() {
|
|||
|
||||
WiFi.setSleepMode(WIFI_NONE_SLEEP);
|
||||
|
||||
// Uncomment if you want to set static IP
|
||||
// Order is: IP, Gateway and Subnet
|
||||
//wifiManager.setSTAStaticIPConfig(IPAddress(192,168,0,128), IPAddress(192,168,0,1), IPAddress(255,255,255,0));
|
||||
|
||||
//fetches ssid and pass and tries to connect
|
||||
//if it does not connect it starts an access point with the specified name
|
||||
//here "AutoConnectAP"
|
||||
|
|
Loading…
Reference in a new issue