EHS8 GPS location using JSR179 API causes mainthread to hang for about one second
May 18, 2018 - 7:00am, 227 views
i've made an application where i use the JSR179 java api to retrieve GPS coordinates.
It is working as expected but when coordinates are received the meanthread stops working for about one second. I can see this because i'm toggeling a status led on the module each cycle in the mainthread.
Can anyone tell me if observed the same, or if there is a workaround?
Location loc = locProvider.getLocation(-1);
_longval = loc.getQualifiedCoordinates().getLongitude();
_latval = loc.getQualifiedCoordinates().getLatitude();
Logger.info(this.getClass(), "Current location is: " + _latval + ", " + _longval);
Here ist the output of ATI1