Hello! I am pretty familiar with Arduio and done some projects with it. I just got an Ethernet Shield and wanting to start off with Blynk, as I find it really nice. I beginned with the Blink Blueprint and got my Arduino Uno online, but it changing the state of the button/tapping it, from the app or from the web, wont on/off the LED! I used different pins, tried other values for the V0 datastream etc. but no success. This is the initial code from the Blueprint.
// *** MAIN SETTINGS ***
// Replace this block with correct template settings.
// You can find it for every template here:
//
// https://blynk.cloud/dashboard/templates
#define BLYNK_TEMPLATE_ID "TMPL4PTUvo6ob"
#define BLYNK_TEMPLATE_NAME "Hello LED 1"
#define BLYNK_AUTH_TOKEN "***"
#define BLYNK_PRINT Serial
// Adding the required libraries
#include <SPI.h>
#include <Ethernet.h> // You need to add it by searching "Ethernet" in libraries and install it
#include <BlynkSimpleEthernet.h> // You need to add it by searching "Blynk" in libraries and install it
#define LED_PIN 13
void setup()
{
pinMode(LED_PIN, OUTPUT);
// Debug console
Serial.begin(115200);
Blynk.begin(BLYNK_AUTH_TOKEN);
}
void loop()
{
Blynk.run();
}
BLYNK_WRITE(V0)
{
int value = param.asInt();
if (value == 1)
{
digitalWrite(LED_PIN, HIGH);
}
else
{
digitalWrite(LED_PIN, LOW);
}
}