Add ability to forward temp.cur to another device.
This commit is contained in:
@@ -40,7 +40,7 @@ int configVersion = 0;
|
||||
|
||||
bool isFirstRun = true;
|
||||
bool isFirstConnect = true; // Flag for re-sync on connection.
|
||||
int relayState = LOW; // Blynk app pushbutton status.
|
||||
int relayState = false; // Blynk app pushbutton status.
|
||||
|
||||
boolean SwitchReset = true;
|
||||
|
||||
@@ -97,6 +97,7 @@ bool resetRequired = false;
|
||||
#include "timer.h"
|
||||
#include "blynk.h"
|
||||
#include "function.h"
|
||||
WidgetBridge blynkBridge1(V100); //Initiating Bridge Widget on V100
|
||||
#include "blynkFunc.h"
|
||||
|
||||
|
||||
@@ -122,6 +123,8 @@ bool resetRequired = false;
|
||||
// Set WIFI module to STA mode
|
||||
WiFi.mode( WIFI_STA );
|
||||
|
||||
|
||||
|
||||
// Initialize Blynk.
|
||||
#ifdef useLocalServer
|
||||
Blynk.config(auth,server,port);
|
||||
@@ -152,6 +155,7 @@ bool resetRequired = false;
|
||||
configSave();
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -8,3 +8,7 @@
|
||||
char auth[35] = "";
|
||||
char server[] = "";
|
||||
int port = 8080;
|
||||
|
||||
//If you wish to forward the temperature to another device, add the
|
||||
//token here and enable in "config.h"
|
||||
char forwardAuth[35] = "";
|
||||
|
||||
+1
-1
@@ -53,6 +53,6 @@ BLYNK_WRITE(V70) {
|
||||
resetFlag = param.asInt();
|
||||
|
||||
if (resetFlag == true) {
|
||||
//ESP.reset();
|
||||
ESP.reset();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user