BLYNK
HOME       📲 GETTING STARTED       📗 DOCS       ❓HELP CENTER       👉 SKETCH BUILDER

BLYNK_READ wont'update (Arduino UNO + WizNet1550)


#1

Hi guys, I need a help with my first project.

This is my code:
`BLYNK_WRITE(V15){
int j = 7;
int i = param.asInt();
// double d = param.asDouble()
int myBool = digitalRead(myArr[j]);
if (i == 1) {
if (myBool == 1) {
digitalWrite(myArr[j],LOW);
} else {
digitalWrite(myArr[j],HIGH);
}
}
BlynkSetState();
}

BLYNK_READ(V17){
Serial.print(“BLYNK_READ(V17)”);
digitalWrite(V17, bArray[5]);
Serial.println(bArray[5]);
}

/* ----------------------- Blynk push data ----------------------- */
void sendUptime(){
Blynk.virtualWrite(V16, bArray[3]);
//Blynk.virtualWrite(V17, bArray[3]);
}`

Now, when I push the button V15 the LED “myArr[j]” will light correctly and in the arduino serial monitor I see the correct value. Even for the sendUptime function when the V16 graph is uptaded in the right way.
The problem is for the Value Display V17… the Arduino Serial Monitor show me that the function BLYNK_READ(V17) is called but it seems that the “digitalWrite(V17, bArray[5]);” isn’t execetued on the Blynk apps … I cannot see any value in the Value DispLAy.


#2

You probably meant blynk.virtualWrite() ?


#3

:blush: O.M.G.!!! two days of works and I never seen the lack of the Blynk prefix!
Where it gone my brain?
Thanks vhymanskyy!


#4

Did ‘virtualwrite’ even compile?


#5

Yes Arduino compiled my sketch, even w/o prefix, maybe is another standard i/o library.


#6

can i use :

BLYNK_WRITE(V1,V2,V3)
{

}

?
Or how can i catch multi virtual pins in one function ?


closed #7

Really old topic - Closing