Getting device location using tracker-edge on Tracker SoM


I am using a Tracker SoM device on a Tracker SoM devkit running Tracker-Edge firmware.

I see that sending {“cmd”:“get_loc”} from the cloud in the “get” function allows me to retrieve the device location amongst other data.

Is there any way to get those latitude/longitude points from within the firmware? I’ve searched but couldn’t find a way to retrieve those data.

Best regards,

It depends. If you only want to get the location from the GNSS, use getLocation() from custom Tracker Edge firmware.

If you want to get the location information using Location Fusion enhanced location (taking into account Wi-Fi geolocation), you need to subscribe to enhanced location events. Note that this means you will need to claim devices (Tracker device are normally left unclaimed, but this mode cannot be used when subscribing to events). Also each enhanced location counts as an additional data operation, in addition to the original loc event from the device.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.