i have same problem.
how to compare two virtual pin value?
edit:
i solved my problem:
sample code written on http://docs.blynk.cc/#blynk-main-operations-virtual-pins
BLYNK_WRITE(V1) //Button Widget is writing to pin V1
{
int pinData = param.asInt();
}
simple, int command used in BLYNK_WRITE(V1) scope.
this example, everywhere like this.
my solution is this:
int v3=0;
int v4=0;
int v5=0;
BLYNK_WRITE(V3){v3 = param.asInt();}
BLYNK_WRITE(V4){v4 = param.asInt();}
BLYNK_WRITE(V5){TimeInputParam t(param);
for (int i = 1; i <= 7; i++) {
if (t.isWeekdaySelected(i)) {
if (t.hasStartTime()){v5=1;}
if (t.hasStopTime()){v5=0;}}
}
}
void loop() {
if (v4==0) {if (v5==0) {durum=0;}
else {durum=1;}}
else {if (v3==0) {durum=0;}
else {durum=1;}}
summarize,
If you use the “int” command first and then assign the value without “int” in the BLYNK_WRITE(Vx) scope,
many virtual pin values can be used in the loop scope.
sorry for bad english.