|
@@ -64,7 +64,7 @@ AudioControlSGTL5000 sgtl5000_1; //xy=573,537
|
|
|
// GUItool: end automatically generated code
|
|
|
|
|
|
// Config variables
|
|
|
-int configPort = 1 ;
|
|
|
+int configPort = 8001 ;
|
|
|
String ID = "ina" ;
|
|
|
//float hysteresis = 5;
|
|
|
|
|
@@ -204,7 +204,7 @@ bool checkUDPconnected() {
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- int port = 8000 + configPort;
|
|
|
+ int port = configPort;
|
|
|
Serial1.print("AT+CIPSTART=\"UDP\",\"192.168.3.1\",");
|
|
|
Serial1.println(port);
|
|
|
Serial.println ("Reconnecting UDP");
|
|
@@ -338,7 +338,7 @@ void setup() {
|
|
|
ESPSerial();
|
|
|
delay(200);
|
|
|
Serial.println ("");
|
|
|
- int port = 8000 + configPort;
|
|
|
+ int port = configPort;
|
|
|
Serial1.print("AT+CIPSTART=\"UDP\",\"192.168.3.1\",");
|
|
|
Serial1.println(port);
|
|
|
ESPSerial();
|