Merge branch 'dev' of https://git.steelants.cz/JonatanRek/PHP_SMART_HOME_V3 into dev
This commit is contained in:
commit
5418452da2
@ -85,9 +85,18 @@ void loop() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//Set static ip
|
//Set static ip
|
||||||
|
<<<<<<< HEAD:_FIRMWARE/firmwares/NodeMCU Sensor/ESP_OS_NODE_V3.ino
|
||||||
IPAddress addr;
|
IPAddress addr;
|
||||||
if (addr.fromString(ipAddress)) {
|
if (addr.fromString(ipAddress)) {
|
||||||
IPAddress ip(addr);
|
IPAddress ip(addr);
|
||||||
|
=======
|
||||||
|
IPAddress staticIpAddress;
|
||||||
|
IPAddress subnetIpAddress(192,168,0,1);
|
||||||
|
IPAddress gatewayIpAddress(255, 255, 255, 0);
|
||||||
|
|
||||||
|
if (staticIpAddress.fromString(ipAddress)) {
|
||||||
|
WiFi.config(staticIpAddress, subnetIpAddress, gatewayIpAddress);
|
||||||
|
>>>>>>> d67bac14e9b4cd8a60a50b3d65b6f09d40bc944e:_FIRMWARE/firmwares/NodeMCU Sensor/ESP_OS_NODE_V3.ino/ESP_OS_NODE_V3.ino.ino
|
||||||
Serial.print("IP address:\t");
|
Serial.print("IP address:\t");
|
||||||
Serial.println(WiFi.localIP());
|
Serial.println(WiFi.localIP());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user