Gps tracking with gsm feedback on command

This way of reading the GPS could well fail.

A typical GPS outputs about 9 different sentences, but only 2 contain the GPS location data the library reads.

With the code above, when one of the 9 sentences, that has no location data, is read the program goes off and does a pile of stuff related to the SIM.

By the time the SIM stuff is finished and the code gets back to reading the GPS, you could well have missed the GPS sentences that contain the GPS location data. More info here;

https://stuartsprojects.github.io/2024/09/21/How-not-to-read-a-GPS.html

1 Like