GPS Stream parameter with python-library - Need Help With My Project - Blynk Community
blynkkk.github.io/gps_streaming.md at master · blynkkk/blynkkk.github.io
Trying to test GPS - Solved - Blynk Community
IoT Based Android phone accelerometer controlled robot - Blynk Projects (hackster.io)
I tired these methods but they didn’t work.
I can’t find the widget that uses the mobile sensor in the Blynk App’s widget box.
Or all that said is not available ?
Map in web dashboard is for track gps with timestamp that’s not my intention.
On-OFF V3 only print V3’s values
/* Comment this out to disable prints and save space */
#define BLYNK_PRINT Serial
/* Fill in information from Blynk Device Info here */
#define BLYNK_TEMPLATE_ID "*****"
#define BLYNK_TEMPLATE_NAME "*****"
#define BLYNK_DEVICE_NAME "*******"
#define BLYNK_AUTH_TOKEN "*************"
#include <BlynkSimpleEsp32.h>
#include <WiFi.h>
#include <WiFiClient.h>
char auth[] = BLYNK_AUTH_TOKEN;
char ssid[] = "CLASS@BURIRAM";
char pass[] = "044163910";
int LED_test = 2 ;
BlynkTimer timer;
void setup()
{
Serial.begin(115200);
Blynk.begin(auth, ssid, pass);
//timer.setInterval(1000L, getGpsLocation); // call getGpsLocation every 1 second
pinMode(LED_test, OUTPUT);
}
void loop()
{
Blynk.run();
timer.run();
}
//-------V3 is button
//-------V6 is location
BLYNK_WRITE(V3) {
//double lat ;
//double lon ;
WidgetMap myMap(V6);{
int index = 1;
double lat = param[0].asDouble();
double lon = param[1].asDouble();
float alt = param[2].asFloat();
float speed = param[3].asFloat();
myMap.location(index, lat, lon, "value");
Serial.println(lat, 7);
Serial.println(lon, 7);
}
}
BLYNK_WRITE(2) { //turn light
digitalWrite(LED_test, param.asInt());
}
BLYNK_WRITE(V6) {
float latitude = param[0].asFloat();
float longitude = param[1].asFloat();
float altitude = param[2].asFloat();
float speed = param[3].asFloat();
Serial.println(latitude, 7);
Serial.println(longitude, 7);
Serial.println(altitude, 7);
Serial.println(speed, 7);
}