mirror of
https://github.com/rstrouse/ESPSomfy-RTS.git
synced 2025-12-13 11:02:12 +01:00
Fix scoping issue when setting the IP address #100
This commit is contained in:
parent
9fdf5896d1
commit
f62dcef161
5 changed files with 22 additions and 4 deletions
|
|
@ -36,7 +36,12 @@ void setup() {
|
|||
|
||||
void loop() {
|
||||
// put your main code here, to run repeatedly:
|
||||
if(rebootDelay.reboot && millis() > rebootDelay.rebootTime) ESP.restart();
|
||||
if(rebootDelay.reboot && millis() > rebootDelay.rebootTime) {
|
||||
Serial.print("Rebooting after ");
|
||||
Serial.print(rebootDelay.rebootTime);
|
||||
Serial.println("ms");
|
||||
ESP.restart();
|
||||
}
|
||||
net.loop();
|
||||
somfy.loop();
|
||||
if(net.connected()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue