Add ability to forward temp.cur to another device.

This commit is contained in:
mrcory
2020-04-01 14:47:43 -04:00
parent 81216169ae
commit b343d086cf
3 changed files with 10 additions and 2 deletions
+5 -1
View File
@@ -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();
}
}
+4
View File
@@ -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
View File
@@ -53,6 +53,6 @@ BLYNK_WRITE(V70) {
resetFlag = param.asInt();
if (resetFlag == true) {
//ESP.reset();
ESP.reset();
}
}