EHS8 Nmea data | Thales IoT Developer Community
March 7, 2016 - 7:05pm, 3060 views
I'm developing a Java program, and a I need to fix my GPS position and send it to a server. With AT Command, I set up and start the GPS and with a RspListener I view the Nmea data. The problem is that I call the listener in a while loop, and the number of Nmea data is diferent in each iteration. For example, in the first iteration, I have two block of Nmea data, in the next iteration, I have eight, and the number increase.
I don't know why is happening this.
How to use the Java classes for the GPS instead AT command and the raw NMEA streams?
Somewhere over the rainbow!!! Looking for the Oz Land!!!
I tried another example I saw in the forum. This example use LocationProvider and a few other Java classes, but I have this error:
I have cwmlib added in Java Build Path.
Thanks for the help!
The position is not yet fixed in your example. To get the position you would need one sentence with the position.
The exception is because you also need to export the cwmlib with the MIDlet (Java Build Path, Order and Export tab).
Thanks for the help. Now I have a Java program that fix my position and give me the coords. Very helpful forum.