Hello,
I would like to know if it is possible to use a virtualpin not attached to a widget to store a value on the server and be able to retrieve it with virtualsync ??? or is there another way to do it ?
Thanks for your help
Yes this is possible. Write the value using Blynk.virtualWrite(Vpin, value);
, and retrieve it using Blynk.syncVirtual(Vpin);
, and its associated function.
int value;
BLYNK_WRITE(V2) {
value = param.asInt();
}
Thanks, i will try it !
You should be right, i have found this ==> https://github.com/blynkkk/blynk-library/blob/master/examples/More/ServerAsDataStorage/ServerAsDataStorage_MultiValue/ServerAsDataStorage_MultiValue.ino