Dear All
I’m a new with BLYNK . I try to use command for send data from App to my Hardware with command BLYNK_WRITE(V1) code as below .When I upload code to my hardware it has error . It show as below
Arduino: 1.8.3 (Windows 7), Board: "NodeMCU 1.0 (ESP-12E Module), 80 MHz, 115200, 4M (3M SPIFFS)"
C:\Users\TEX\Desktop\Arduino\Smart_Plug\Smart_Plug.ino: In function 'void loop()':
Smart_Plug:31: error: a function-definition is not allowed here before '{' token
{
^
exit status 1
a function-definition is not allowed here before '{' token
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
void loop()
{
Blynk.run();
BLYNK_WRITE(V1) {
int virtualPinValue = param.asInt();
}
}
How I can Solve it problem . Please someone help .Thank you very much