GPS trigger,

Hello,

I have problems with the function of the GPS trigger,

Is there any other example other than that of blynk?

For me (Samsung S4, Android 5.01) the GPS trigger does not respond.

The Geozone is the whole circle cut out of the map, right?
When I enter into this my virtual pin is set to 1 and the tool should change or?

Can you be more clear ? I don’t really understand your problem

1 Like

Bei mir funktioniert der GPS tracker nicht, ich setze einen virtuellen Port und lasse mir das setzen über den Terminal in der App anzeigen.
Aber ich bekomme keine Meldung.
Mir ist aufgefallen das sich der GPS tracker Button auch nicht ändert (aktiv /deaktiv).
Muss ich der App noch irgendwie die GPS Benutzung erlauben?
Gruß

Speaking german does not make it more clear

3 Likes

For me, the GPS tracker does not work, I set a virtual port and let me set the over the terminal in the app.
But I get no message.
I noticed that the GPS tracker button does not change (active / inactive).
Do I have to allow the app somehow to use the GPS?
greeting

Have you allowed full permissions for the Blynk App?

I am guessing you mean the GPS Trigger Widget? (not tracker) and not the GPS Streaming Widget?

Can you show us the code you have?

@Dema323 He is running a Samsung S4, Android 5.01

1 Like

That must be it because if your gps is off Blynk asks you to turn it on, are you using ios or android ?

I have Samsung S4, Android 5.01 and GPS is on !

Go check what permissions Blynk has in your applist. If you don’t know how il try to help you the best i can.

The app has the right to the exact location and the approximate location.

So I’m back home …

Here times my code:

#define BLYNK_PRINT Serial    // Comment this out to disable prints and save space
#include <SPI.h>
#include <Ethernet.h>
#include <BlynkSimpleEthernet.h>
#include <RS485.h>
//#include <SoftwareSerial.h>

char auth[] = "bce1c9bf2*************";
char Message[maxMsgLen+1] ;
int zahler;


byte arduino_mac[] = { 0xDE, 0xED, 0xBA, 0xFE, 0xFE, 0xED };
IPAddress arduino_ip ( 192,   168,   178,  150);
IPAddress dns_ip     ( 192,   168,   178,  1);
IPAddress gateway_ip ( 192,   168,   178,  1);
IPAddress subnet_mask( 255,   255,   255,  0);

WidgetTerminal terminal(V5);

//Taster   *****************************************************
BLYNK_WRITE(V1)
{
 int Value1 = param.asInt(); // assigning incoming value from pin V1 to a variable
 if (Value1 == 1)
 {
      zahler = zahler +1;
      terminal.print(zahler ,DEC);
      terminal.println(" RS485: Sendet 1"); // Print values, like Serial.println()
      terminal.flush();
      
 }
}

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


//*****************************************************
void setup()
{
  Serial.begin(9600);
  Blynk.begin(auth, "blynk-cloud.com", 8442, arduino_ip, dns_ip, gateway_ip, subnet_mask, arduino_mac);
  terminal.println(F("Blynk v" BLYNK_VERSION ": Device started")); 
  terminal.println(F("-------------")); 
  terminal.flush(); 
  zahler = 0;
}

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