From 1b79fa087496e3b7251f71be3bda2bd45eacee8f Mon Sep 17 00:00:00 2001 From: Tobias Blum Date: Wed, 20 Jun 2018 00:08:51 +0200 Subject: [PATCH] Example line for static IP as discussed in https://github.com/toblum/McLighting/issues/187 --- Arduino/McLighting/McLighting.ino | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Arduino/McLighting/McLighting.ino b/Arduino/McLighting/McLighting.ino index bf07480..46cca9d 100644 --- a/Arduino/McLighting/McLighting.ino +++ b/Arduino/McLighting/McLighting.ino @@ -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"