BLYNK
HOME       📲 GETTING STARTED       📗 DOCS       ❓HELP CENTER       👉 SKETCH BUILDER

BLYNK_WRITE not triggering

#1

Before creating the topic

  1. Search forum for similar topics
  2. Check http://docs.blynk.cc and http://help.blynk.cc/
  3. Add details :
    • Hardware model + communication type. For example: Arduino UNO with Ethernet Shield
    • Smartphone OS (iOS or Android) + version
    • Blynk server or local server
    • Blynk Library version
    • Add your sketch code. :point_up:Code should be formatted as example below.

Simply paste your code between ``` If you don’t format your code, your topic can be deleted by moderators.
I am using WEMOS D1 R1.
Have been trying for hours but nothing works.

#define BLYNK_PRINT Serial

#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>

char auth[] = "2cafade5c1224e2d8232af56667925ed";

char ssid[] = "Asif PTCL";
char pass[] = "asif1914";

void setup()
{
  // Debug console
  Serial.begin(9600);

  Blynk.begin(auth, ssid, pass);
}

void loop()
{
  Blynk.run();
}

BLYNK_WRITE(v0)
{
  int up = param.asInt();
  Blynk.virtualWrite(V4, 1);
}

BLYNK_WRITE(v1)
{
  int down = param.asInt();
  Blynk.virtualWrite(V4, 2);
}

BLYNK_WRITE(v2)
{
  int turnLeft = param.asInt();
  Blynk.virtualWrite(V4, 3);
}

BLYNK_WRITE(v3)
{
  int turnRight = param.asInt();
  Blynk.virtualWrite(V4, 4);
}
0 Likes

#2

we need details to help you.
what do you mean by nothing works?
what is V4 ?
what do you see on the serial monitor?

0 Likes

#3

I just checked and I had the ‘v’ in small instead of capital.
Thank you for trying to help.

0 Likes