|
|
|
@ -5,7 +5,7 @@ |
|
|
|
|
|
|
|
#include <PubSubClient.h> |
|
|
|
|
|
|
|
#define WLAN_SSID "TP-LINK-HOME" |
|
|
|
#define WLAN_SSID "TP-LINK-OUT" |
|
|
|
#define WLAN_PASS "6JM54UG4EX" |
|
|
|
|
|
|
|
#define MQTT_CLID "ValveControl" |
|
|
|
@ -28,11 +28,11 @@ String SendHTML(uint8_t ValveOpen); |
|
|
|
|
|
|
|
bool ValveOpen = false; |
|
|
|
|
|
|
|
int ButtonOpen = 14; |
|
|
|
int ButtonClose = 12; |
|
|
|
int ButtonOpen = 16; |
|
|
|
int ButtonClose = 19; |
|
|
|
|
|
|
|
int MotorPin1 = 0; |
|
|
|
int MotorPin2 = 2; |
|
|
|
int MotorPin1 = 25; // estende il braccio
|
|
|
|
int MotorPin2 = 26; // ritrae il braccio
|
|
|
|
int duration = 60000; |
|
|
|
|
|
|
|
WebServer server(80); |
|
|
|
@ -51,7 +51,7 @@ void setup_wifi() { |
|
|
|
} |
|
|
|
Serial.println(); |
|
|
|
Serial.println("WiFi connected"); |
|
|
|
Serial.println("IP address: "); |
|
|
|
Serial.print("IP address: "); |
|
|
|
Serial.println(WiFi.localIP()); |
|
|
|
} |
|
|
|
|
|
|
|
|