Multiple values from virtual pins

Hi

I am trying to retrieve two values from a single virtual pin. The request is http://188.166.206.43/0381409xxxxx6b0f3a1119966b/update/V0?value=20?op=add

The ip given in the above request my country blynk server address and then comes the auth token. I want to retrieve the values in value and op
And my code for retrieving the values is as follows


BLYNK_WRITE(V0)
{
  Serial.println("Got data on V0");
  Serial.println(param[0].asInt());
  Serial.println(param[1].asStr());
  
}

Is this correct or is there any other way? Or is it even possible to retrieve two values from a single virtual pin?

Solved!
I have used
http://188.166.206.43/03814096d4caxxxxx9966b/update/V0?value=20&value=add

and i was able to retrieve them as two parameters :slight_smile:

1 Like