GPS Trigger problem

everyone Hello I have a problem I am uploading GPS codes I am changing the street but there is no change

1 Like


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

// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = "4448********51d44c7";
 
char ssid[] = "*******";
char pass[] = "**********";

WidgetLED led1(V11);

WidgetTerminal terminal(V5);

 

//GPS Tracker   *****************************************************
BLYNK_WRITE(V12) {
  int state = param.asInt();
  if (state) {
      terminal.println(" GPS V12=1"); 
       led1.on();
      terminal.flush();
  } else {
      terminal.println(" GPS V12=0"); 
       led1.off();
      terminal.flush();
  }
}


//*****************************************************
void setup()
{
  Serial.begin(9600);
    Blynk.begin(auth,   ssid, pass , "188.166.206.43");
  terminal.println(F("Blynk v" BLYNK_VERSION ": NodemCU bağlandı")); 
  terminal.println(F("-------------")); 
  terminal.flush(); 
   
}

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

please format your code

@tariktumanbay It is three backtick characters, not commas…

Blynk - FTFC

You also may need to initially have your LED widget set to the highest “intensity” before being able to see it turn ON and OFF

led1.setValue(255); //set brightness of LED to 100%.

http://docs.blynk.cc/#widgets-displays-led

Also, make sure you have allowed full permissions for Blynk in your phone.

My main problem is that when I get into the area, there is nothing
I enter my own sites but there is no change
no change GPS V12 = 0 or GPS V12 = 1

Also, what type phone and version of App?

Version of Local Server? And when you are out and about, can your phone actually communicate with your server… how have you setup the router and App login?

i give full permissions for blynk
I live in turkey and do not connect without using this ip after the last update
my phone xiaomi mi mix … and android 6,0,1
this not local server i using only blynk server

my previous topic

thank you for helping me Gunner