Including a last known location in a log

My current script is a log saying that %Devicename% has initiated a wifi reconnect, then uses the wifireconnect macro. But I also want to include the last known coordinates before/as the script was ran. Currently I have to match timestamps with the collected data section but I'd like my log to say %Devicename% has initiated a wifi reconnect, last known location was (Latitude and Longitude).

4 years ago
Android Scripting
ANSWERS
RC
Raymond Chan Diamond Contributor
4 years ago

As far as I know, there is currently no built-in MobiControl script or macro that supports what you need.  If the lattitude and longitude data are collected with custom-data fields collected from your own custom app (rather than from default "location" parameter in your data-collection rule, then what you need should be achievable.