EHS8 Java programming for GPS | Telit Cinterion IoT Developer Community
December 2, 2014 - 10:29am, 8579 views
Hello Everyone,
I'm a begginer on Gemalto and working on Java CMTK.
For managing GPS I saw a class called GpsApiMngr, it is to set the GPS settings, right? I can see the related methods, but couldn't find any example or description for arg in those APIs. Is there any guide how can I use those APIs?
By using which class I can get the location and GPS information (those from NMEA)? I saw some classes in the Location class of com/cinterion/location package, which one and where I should use them?
Thanks~
Hello,
Do you get this exception while getting the LocationProvider instance or later while getting the location?
Did you also get this while you were not using AT commands?
Please also provide the ATI1 response.
Please try to create the provider only once and then try to get the location:
Criteria criteria = new Criteria();
criteria.setCostAllowed(cost);
LocationProvider provider = null;
Location location = null;
provider = LocationProvider.getInstance(criteria);
location = provider.getLocation(-1);
Please also check the state of the LocationProvider instance (getState()).
Regards,
Bartłomiej