Before creating the topic
- Search forum for similar topics
- Check http://docs.blynk.cc and http://help.blynk.cc/
- 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. 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);
}