Error Correction (Help ME out with this error)

#define BLYNK_PRINT Serial
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>

#define RightMotorSpeed D5 //14
#define RightMotorDir D6 //12
#define LeftMotorSpeed D7 //13
#define LeftMotorDir D8 //15

const int trigPin = 9;
const int echoPin = 10;

char auth = “uwbrmQt90lmjBZSlHdHn4pftvz2k2zqH”; //Blynk Authentication Token
char ssid = “PKA”; //WIFI Name
char pass = “angrybird”; //WIFI Password

int minRange = 312;
int maxRange = 712;

int minspeed = 450;
int maxspeed = 1020;
int nospeed = 0;

void moveControl(int x, int y)
{
//Move Forward
if (y >= maxRange && x >= minRange && x <= maxRange)
{
digitalWrite( RightMotorDir, HIGH);
digitalWrite(LeftMotorDir, HIGH);
analogWrite(RightMotorSpeed, maxspeed);
analogWrite(LeftMotorSpeed , maxspeed);
}

//Move Forward Right
else if (x >= maxRange && y >= maxRange)
{
digitalWrite( RightMotorDir, HIGH);
digitalWrite(LeftMotorDir, HIGH);
analogWrite(RightMotorSpeed, minspeed);
analogWrite(LeftMotorSpeed , maxspeed);
}

//Move Forward Left
else if (x <= minRange && y >= maxRange)
{
digitalWrite( RightMotorDir, HIGH);
digitalWrite(LeftMotorDir, HIGH);
analogWrite(RightMotorSpeed, maxspeed);
analogWrite(LeftMotorSpeed , minspeed);
}

//No Move
else if (y < maxRange && y > minRange && x < maxRange && x > minRange)
{
analogWrite(RightMotorSpeed, nospeed);
analogWrite(LeftMotorSpeed , nospeed);
}

//Move Backward
else if (y <= minRange && x >= minRange && x <= maxRange)
{
digitalWrite( RightMotorDir, LOW);
digitalWrite(LeftMotorDir, LOW);
analogWrite(RightMotorSpeed, maxspeed);
analogWrite(LeftMotorSpeed , maxspeed);
}

//Move Backward Right
else if (y <= minRange && x <= minRange)
{
digitalWrite( RightMotorDir, LOW);
digitalWrite(LeftMotorDir, LOW);
analogWrite(RightMotorSpeed, minspeed);
analogWrite(LeftMotorSpeed , maxspeed);
}

//Move Backward Left
else if (y <= minRange && x >= maxRange)
{
digitalWrite( RightMotorDir, LOW);
digitalWrite(LeftMotorDir, LOW);
analogWrite(RightMotorSpeed, maxspeed);
analogWrite(LeftMotorSpeed , minspeed);
}
}

void setup()
{
Serial.begin(9600);
Blynk.begin(auth, ssid, pass);

pinMode(trigPin, OUTPUT);
pinMode(echoPin, INPUT);
pinMode(RightMotorSpeed, OUTPUT);
pinMode(LeftMotorSpeed , OUTPUT);
pinMode( RightMotorDir, OUTPUT);
pinMode(LeftMotorDir, OUTPUT);

digitalWrite(RightMotorSpeed, LOW);
digitalWrite(LeftMotorSpeed , LOW);
digitalWrite( RightMotorDir, HIGH);
digitalWrite(LeftMotorDir, HIGH);
}

long duration, distance;

void loop()
{
{
Blynk.run();
}
BLYNK_WRITE(V1)
{
int x = param[0].asInt();
int y = param[1].asInt();
moveControl(x, y);
}

digitalWrite(trigPin, LOW);
delayMicroseconds(2);
digitalWrite(trigPin, HIGH);
delayMicroseconds(10);
digitalWrite(trigPin, LOW);
duration = pulseIn(echoPin, HIGH);
distance = duration / 58.2;
if (distance < 20) // When distance of Obstacle is less than 20 cm then turn LEFT
{
digitalWrite(RightMotorSpeed, LOW); // For the bot to make a RIGHT turn instead of LEFT turn change (HIGH to LOW) and (LOW to HIGH)
digitalWrite(LeftMotorSpeed, LOW);
digitalWrite(RightMotorDir, LOW);
digitalWrite(LeftMotorDir, LOW);
delay(1000);
}

else // When there is no obstacle under 20cm then the bot moves forward.
{
digitalWrite(RightMotorSpeed, HIGH);
digitalWrite(LeftMotorSpeed, HIGH);
digitalWrite(RightMotorDir, HIGH);
digitalWrite(LeftMotorDir, HIGH);
}
}

sketch_sep15a.ino (3.64 KB)

What error would that be ?

Please follow the advice on posting code in Read this before posting a programming question

In particular note the advice to Auto format code in the IDE and using code tags when posting code here

UKHeliBob:
What error would that be ?

Please follow the advice on posting code in Read this before posting a programming question

In particular note the advice to Auto format code in the IDE and using code tags when posting code here

Arduino: 1.6.9 (Windows 10), Board: "NodeMCU 1.0 (ESP-12E Module), 80 MHz, Flash, Disabled, All SSL ciphers (most compatible), 4M (no SPIFFS), v2 Lower Memory, Disabled, None, Only Sketch, 115200"

C:\Users\Prithvi K A\Documents\Arduino\sketch_sep15a\sketch_sep15a.ino: In function 'void loop()':

sketch_sep15a:117: error: a function-definition is not allowed here before '{' token

{

^

C:\Users\Prithvi K A\Documents\Arduino\sketch_sep15a\sketch_sep15a.ino: At global scope:

sketch_sep15a:124: error: expected unqualified-id 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.

In particular note the advice to Auto format code in the IDE and using code tags when posting code here

Like this

#define BLYNK_PRINT Serial
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>

#define RightMotorSpeed       D5   //14
#define RightMotorDir         D6   //12
#define LeftMotorSpeed        D7   //13
#define LeftMotorDir          D8   //15

const int trigPin = 9;
const int echoPin = 10;

char auth[] = "uwbrmQt90lmjBZSlHdHn4pftvz2k2zqH";  //Blynk Authentication Token
char ssid[] = "PKA";           //WIFI Name
char pass[] = "angrybird";           //WIFI Password

int minRange = 312;
int maxRange = 712;

int minspeed = 450;
int maxspeed = 1020;
int nospeed = 0;


void moveControl(int x, int y)
{
  //Move Forward
  if (y >= maxRange && x >= minRange && x <= maxRange)
  {
    digitalWrite( RightMotorDir, HIGH);
    digitalWrite(LeftMotorDir, HIGH);
    analogWrite(RightMotorSpeed, maxspeed);
    analogWrite(LeftMotorSpeed , maxspeed);
  }
  //Move Forward Right
  else if (x >= maxRange && y >= maxRange)
  {
    digitalWrite( RightMotorDir, HIGH);
    digitalWrite(LeftMotorDir, HIGH);
    analogWrite(RightMotorSpeed, minspeed);
    analogWrite(LeftMotorSpeed , maxspeed);
  }
  //Move Forward Left
  else if (x <= minRange && y >= maxRange)
  {
    digitalWrite( RightMotorDir, HIGH);
    digitalWrite(LeftMotorDir, HIGH);
    analogWrite(RightMotorSpeed, maxspeed);
    analogWrite(LeftMotorSpeed , minspeed);
  }
  //No Move
  else if (y < maxRange && y > minRange && x < maxRange && x > minRange)
  {
    analogWrite(RightMotorSpeed, nospeed);
    analogWrite(LeftMotorSpeed , nospeed);
  }
  //Move Backward
  else if (y <= minRange && x >= minRange && x <= maxRange)
  {
    digitalWrite( RightMotorDir, LOW);
    digitalWrite(LeftMotorDir, LOW);
    analogWrite(RightMotorSpeed, maxspeed);
    analogWrite(LeftMotorSpeed , maxspeed);
  }
  //Move Backward Right
  else if (y <= minRange && x <= minRange)
  {
    digitalWrite( RightMotorDir, LOW);
    digitalWrite(LeftMotorDir, LOW);
    analogWrite(RightMotorSpeed, minspeed);
    analogWrite(LeftMotorSpeed , maxspeed);
  }
  //Move Backward Left
  else if (y <= minRange && x >= maxRange)
  {
    digitalWrite( RightMotorDir, LOW);
    digitalWrite(LeftMotorDir, LOW);
    analogWrite(RightMotorSpeed, maxspeed);
    analogWrite(LeftMotorSpeed , minspeed);
  }
}

void setup()
{
  Serial.begin(9600);
  Blynk.begin(auth, ssid, pass);
  pinMode(trigPin, OUTPUT);
  pinMode(echoPin, INPUT);
  pinMode(RightMotorSpeed, OUTPUT);
  pinMode(LeftMotorSpeed , OUTPUT);
  pinMode( RightMotorDir, OUTPUT);
  pinMode(LeftMotorDir, OUTPUT);
  digitalWrite(RightMotorSpeed, LOW);
  digitalWrite(LeftMotorSpeed , LOW);
  digitalWrite( RightMotorDir, HIGH);
  digitalWrite(LeftMotorDir, HIGH);
}

long duration, distance;

void loop()
{
  {
    Blynk.run();
  }
  BLYNK_WRITE(V1)
  {
    int x = param[0].asInt();
    int y = param[1].asInt();
    moveControl(x, y);
  }
  digitalWrite(trigPin, LOW);
  delayMicroseconds(2);
  digitalWrite(trigPin, HIGH);
  delayMicroseconds(10);
  digitalWrite(trigPin, LOW);
  duration = pulseIn(echoPin, HIGH);
  distance = duration / 58.2;
  if (distance < 20)                         // When distance of Obstacle is less than 20 cm then turn LEFT
  {
    digitalWrite(RightMotorSpeed, LOW);               // For the bot to make a RIGHT turn instead of LEFT turn change (HIGH to LOW) and (LOW to HIGH)
    digitalWrite(LeftMotorSpeed, LOW);
    digitalWrite(RightMotorDir, LOW);
    digitalWrite(LeftMotorDir, LOW);
    delay(1000);
  }
  else                                      // When there is no obstacle under 20cm then the bot moves forward.
  {
    digitalWrite(RightMotorSpeed, HIGH);
    digitalWrite(LeftMotorSpeed, HIGH);
    digitalWrite(RightMotorDir, HIGH);
    digitalWrite(LeftMotorDir, HIGH);
  }
}
  BLYNK_WRITE(V1)

I am not familiar with the BLYNK library, but what is this line of code intended to do ?