Hi! It’s been a while since I worked on my Blynk project, but currently I want to move to the next phase: GPS.
I have Blynk running on a Teensy 3.6 with a Elecrow SIM808 shield.
I’m able to connect with the App so that’s all working OK.
Unfortunately I am stuck in getting the Map widget to work properly and show the actual location. From the documentation of the Map widget I have learned and implemented the following:
- Before the setup add
- After Blynk.begin(auth), just before the loop() I have added:
int index = 0;
float lat = 52.370216;
float lon = 6.895168;
myMap.location(index, lat, lon, “object”);
That lat and lon are random.
Adding the Map widget in the Blynk App also works and the map indeed shows the location that matched the random lat and lon defined above.
However, the location does not update to the GPS location, why??
If I run the AT command +CGNSINF in the loop, I do get a info object that does contain the correct lat and lon for the device. Furtheremore the blue led on the Elecrow shield is blinking which also confirms the GPS fix.
So my question is: How to I get the map widget to use the actual GPS data?
Is it naive to hope that the widget dan Blynk.run() would do that for me?
Looking at the map example I tend to believe it should work that way.
Hope someone can help me out.