Excuse me,Can someone explain what is param? I need help now,please

BLYNK_WRITE(V1)
{
  int i = param.asInt();
  if(i == 1)
  {
    au = 1;
  }
  else
  {
    au = 0;
  }
}

at int i = param.asInt();
my teacher want to know what is param ? It is a variable? or a function?
plz help.
Sorry for my grammar.

@Jom_Thampongboworn please edit your post, using the pencil icon at the bottom, and add triple backticks at the beginning and end of your code, so that it displays correctly.
Triple backticks look like this:
```

Copy and paste these characters if you can’t find the correct character on your keyboard.

Pete.

ok,sir.

Read the " Obtaining values from the virtual pin" section of this topic:

Pete.

1 Like

Thank you,sir.

what is the problem?

1 Like

My teacher asked me what is param at line 2 and he asked how param work without declare variable.

I still don’t understand why we can use param even it didn’t declare variable.

You are declaring a variable, int i is declaring the variable i as an integer variable type.

Pete.

1 Like

It (param.asInt) is a library function. Clue the “()”

2 Likes