Add case soft WDT Reset

diff --git a/ESP8266/.vscode/arduino.json b/ESP8266/.vscode/arduino.json
index 375ebfa..def0a8a 100644
--- a/ESP8266/.vscode/arduino.json
+++ b/ESP8266/.vscode/arduino.json
@@ -1,6 +1,6 @@
 {
     "board": "esp8266:esp8266:nodemcuv2",
     "configuration": "xtal=80,vt=flash,exception=legacy,ssl=all,eesz=4M2M,led=2,ip=lm2f,dbg=Disabled,lvl=None____,wipe=none,baud=115200",
-    "port": "COM10",
-    "sketch": "Blynk_offline\\Blynk_offline.ino"
+    "port": "COM5",
+    "sketch": "Reset_all_By_V7\\Reset_all_By_V7.ino"
 }
\ No newline at end of file
diff --git a/ESP8266/Blynk_offline/Blynk_offline.ino b/ESP8266/Blynk_offline/Blynk_offline.ino
index 93150e0..250b2a2 100644
--- a/ESP8266/Blynk_offline/Blynk_offline.ino
+++ b/ESP8266/Blynk_offline/Blynk_offline.ino
@@ -17,12 +17,12 @@ SimpleTimer timer;
 
 // You should get Auth Token in the Blynk App.
 // Go to the Project Settings (nut icon).
-char auth[] = "31XmVGrutN6PTd-fcSTcQLEPLZnSJNMR";
+char auth[] = "0z0F7zDnJ4fReHWSGlrFo8Zc3wz9S7r8";
 
 // Your WiFi credentials.
 // Set password to "" for open networks.
-char ssid[] = "Ammara_2.4GHz";
-char pass[] = "0866922890";
+char ssid[] = "Eleceasy";
+char pass[] = "XXXXXXXXX";
 // Line config
 
 BLYNK_CONNECTED() {
@@ -70,6 +70,8 @@ void sendTemp()
 
 void loop()
 {
+
+  Blynk.run();
   if (temperature >= setTemp)
   {
     digitalWrite(pinPump1, HIGH);
@@ -94,4 +96,4 @@ void loop()
     digitalWrite(pinPump2, LOW);
     digitalWrite(pinPump3, LOW);
   }
-}
\ No newline at end of file
+}
diff --git a/ESP8266/Reset_all_By_V7/Reset_all_By_V7.ino b/ESP8266/Reset_all_By_V7/Reset_all_By_V7.ino
index cb61312..3d91b02 100644
--- a/ESP8266/Reset_all_By_V7/Reset_all_By_V7.ino
+++ b/ESP8266/Reset_all_By_V7/Reset_all_By_V7.ino
@@ -6,33 +6,38 @@
 #include <BlynkSimpleEsp8266.h>
 
 // You should get Auth Token in the Blynk App.
-// Go to the Project Settings (nut icon).
-char auth[] = "xxxxxxxxxx";
+// Go to the Project Settings (nut icon). 
+char auth[] = "H603HwhYjQCuRoQwhc4O-55_lifwnbH2"; // Blynk main
+//char auth[] = "0z0F7zDnJ4fReHWSGlrFo8Zc3wz9S7r8"; // Blynk custom
 
 // Your WiFi credentials.
 // Set password to "" for open networks.
-char ssid[] = "xxxxxxxx";
-char pass[] = "xxxxxxxxx";
+char ssid[] = "Eleceasy";
+char pass[] = "Bb20072536";
 
 
 void output ()
 {
   digitalWrite(D3, HIGH);
+  Serial.println(String("D3 On"));
 }
 
 void output1 ()
 {
   digitalWrite(D3, LOW);
+  Serial.println(String("D3 Off"));
 }
 
 void output2 ()
 {
   digitalWrite(D0, HIGH);
+  Serial.println(String("D0 On"));
 }
 
 void output3 ()
 {
   digitalWrite(D0, LOW);
+  Serial.println(String("D0 Off"));
 }
 
 
@@ -62,6 +67,7 @@ BLYNK_WRITE(V7) // Button Widget writes to Virtual Pin V5
     if(param.asInt()== 1) {     // if Button sends 1
     output3();      // start the function 
     output1();
+    Serial.println(String("Reset On"));
     
   }
 }
@@ -76,10 +82,10 @@ void setup()
   // Debug console
   Serial.begin(9600);
   
-  Blynk.begin(auth, ssid, pass, "blynk.iot-cm.com", 8080); 
+  //Blynk.begin(auth, ssid, pass, "oasiskit.com", 8080); 
   //Blynk.begin(auth, ssid, pass);
   // You can also specify server:
-  //Blynk.begin(auth, ssid, pass, "blynk-cloud.com", 80);
+  Blynk.begin(auth, ssid, pass, "blynk-cloud.com", 80);
   //Blynk.begin(auth, ssid, pass, IPAddress(192,168,1,100), 8080);
 }
 
diff --git a/ESP8266/Soft_WDT_reset/Soft_WDT_reset.ino b/ESP8266/Soft_WDT_reset/Soft_WDT_reset.ino
new file mode 100644
index 0000000..aea0f53
--- /dev/null
+++ b/ESP8266/Soft_WDT_reset/Soft_WDT_reset.ino
@@ -0,0 +1,130 @@
+#include <SPI.h>
+#include <Wire.h>
+#include <ESP8266WiFi.h>
+#include <SoftwareSerial.h>
+#include <TridentTD_LineNotify.h>
+#include <BlynkSimpleEsp8266.h>
+SoftwareSerial NodeSerial(D4, D3); // RX | TX
+#define BLYNK_PRINT Serial
+#define SSID        "PWAHOME2sd"
+#define PASSWORD    "P78991290WA"
+#define LINE_TOKEN  "jtJlxIc9ZRMul0mHoKzuFtmj0kSwtDhYx6mPDoTB7uV"
+char auth[] = "KWK-5oGEsWYGmJx8xHT8qb8Nn_Pib5jV";
+int i_data;
+float f_data;
+int val;
+int input;
+int Total;
+int Delay;
+int ONLINE;
+BlynkTimer timer;
+WidgetLCD lcd(V7);
+WidgetLED led(V8);
+WidgetTerminal terminal(V13);
+void setup()
+{
+  pinMode(D3, INPUT);
+  pinMode(D4, OUTPUT);
+  Serial.begin(9600);
+  NodeSerial.begin(57600);
+  WiFi.begin(SSID, PASSWORD);
+  Serial.printf("WiFi connecting to %s\n",  SSID);
+  while (WiFi.status() != WL_CONNECTED) {
+    Serial.print(".");
+    delay(400);
+ }
+  Serial.println(WiFi.localIP());
+  LINE.setToken(LINE_TOKEN);
+  Blynk.begin(auth, SSID, PASSWORD, "blynk.iot-cm.com", 8080);
+  timer.setInterval(1000L, sendUptime); 
+}
+void loop()
+{
+  while (NodeSerial.available())
+  {
+    i_data = NodeSerial.parseInt();
+    f_data = NodeSerial.parseFloat();
+    Total = i_data + input;    
+    terminal.print(i_data);
+    terminal.print(" : ");
+    terminal.print(input);
+    terminal.print(" : ");
+    terminal.println(Total);
+    delay(Delay);
+    Serial.print("รับค่าอนาล็อก");
+    Serial.print(" : ");
+    Serial.println(Total);
+    Blynk.run();
+    timer.run();
+    Blynk.setProperty(V1,"color","#3d94eb"); //ฟ้า
+    Blynk.setProperty(V3,"color","#94eb3d"); //เขียว
+    Blynk.setProperty(V5,"color","#3debeb"); // น้ำเงินเข้ม
+    Blynk.setProperty(V6,"color","#3DEB94"); // น้ำเงินเข้ม
+    if (WiFi.status() != WL_CONNECTED){ reconnect();}
+    CheckConnection();
+  }
+}
+void LINE1()
+{
+  Serial.println("ส่งเเรียบร้อย");
+  LINE.notify(Total);
+}
+BLYNK_WRITE(V1) 
+{
+ if (param.asInt()==1) {
+     ONLINE = 1;
+     led.off();
+ }else{
+     ONLINE = 0;
+     led.on();
+ }
+}
+BLYNK_WRITE(V2)
+{
+  if (param.asInt() == 1){
+    if(ONLINE=1)
+    {
+     LINE1();
+     //delay(200);
+    }
+  }
+}
+BLYNK_WRITE(V3)
+{
+  if (param.asInt() == 1){
+    LINE1();
+    //delay(200);
+  }
+}
+BLYNK_WRITE(V21) //รับค่า+-
+{
+  input = param.asInt();
+  Blynk.virtualWrite(V1, input); 
+}
+BLYNK_WRITE(V22) //รับค่าหน่วง
+{
+  Delay = param.asInt();
+}
+void sendUptime()
+{
+  Blynk.virtualWrite(V6, Total);
+  Blynk.virtualWrite(V5, Total);
+}
+void reconnect()
+{
+  Serial.print("Reconnecting");
+  WiFi.mode(WIFI_STA);
+  WiFi.begin(SSID, PASSWORD);
+  while (WiFi.status() != WL_CONNECTED) {
+    delay(500);
+    Serial.print(".");
+  }
+  Serial.println("Connected!");
+}
+void CheckConnection()   //เช็คการเชือมต่อของ blynk
+{
+  if(!Blynk.connected())
+  {
+    Blynk.connect(); 
+  }
+}
diff --git a/ESP8266/graph_is_0/graph_is_0.ino b/ESP8266/graph_is_0/graph_is_0.ino
new file mode 100644
index 0000000..6d60217
--- /dev/null
+++ b/ESP8266/graph_is_0/graph_is_0.ino
@@ -0,0 +1,196 @@
+#define BLYNK_PRINT Serial
+#define LINE_TOKEN "6ldCGypYxi8BpiBH1je1g916LRYVjNHrGQrWs1vATVg"
+#include <ESP8266WiFi.h>
+#include <BlynkSimpleEsp8266.h>
+#include <SimpleTimer.h>
+#include <SPI.h>
+#include <TridentTD_LineNotify.h>
+#include "Wire.h"
+#include <EEPROM.h>
+#include <SoftwareSerial.h>
+SoftwareSerial NodeSerial(D1, D2); // RX | TX
+
+
+const int sensorIn = A0;
+float mVperAmp = 100; // use 100 for 20A Module and 66 for 30A Module
+
+int X;
+int Y;
+float TIME = 0;
+float FREQUENCY = 0;
+float WATER = 0;
+float TOTAL = 0;
+float LS = 0;
+float FlowUnit = 0;
+float FlowBath = 0;
+float SliderFlow ; 
+float Voltage = 0;
+float VRMS = 0;
+float AmpsRMS = 0;
+                                                   
+int buttonPin = D0;
+
+int Solenoid = D7;
+int Magnetic = D9;
+int Flowsensor = D5;
+int buttonState = 0;
+ char auth[] = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"; 
+ char ssid[] = "Mi Phone";
+ char pass[] = "romeo034";
+
+  BLYNK_WRITE(V10)
+  {
+  SliderFlow = param.asFloat();
+  Serial.print(SliderFlow, 3);
+  }
+  BLYNK_WRITE(V11)
+  {
+  TOTAL = param.asInt();
+  Serial.print(TOTAL);
+  }
+void setup() 
+{
+  pinMode(D1, INPUT);
+  pinMode(D2, OUTPUT); 
+ Serial.begin(9600);
+ EEPROM.begin(512);
+ NodeSerial.begin(57600);
+ EEPROM.get(0, TOTAL);
+ Serial.println(TOTAL);
+ Serial.println(LINE.getVersion());
+ pinMode(Flowsensor,INPUT_PULLUP);
+

[... diff too long, it was truncated ...]

GitHub
sha: 30ceb781