[chronojump] Wifi controller. Added a command to get local channel;



commit 6f0e1c8af467e05fe002edafa80c44970fa2f9ea
Author: Xavier Padullés <x padulles gmail com>
Date:   Wed Sep 29 10:06:39 2021 +0200

    Wifi controller. Added a command to get local channel;

 arduino/lightChro/control/control.ino | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/arduino/lightChro/control/control.ino b/arduino/lightChro/control/control.ino
index efd4a47ee..2d6382168 100644
--- a/arduino/lightChro/control/control.ino
+++ b/arduino/lightChro/control/control.ino
@@ -197,6 +197,8 @@ void serialEvent()
       binaryMode = false;
     } else if(commandString == "reset_time"){
       startTime = millis();
+    } else if(commandString == "get_channel"){
+      Serial.println(controlSwitch);
     } else {
       Serial.println("Wrong local command");
     }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]