Services Location information
Digi Connect EZ Mini User Guide
381
Configure geofencing
Geofencing is a mechanism to create a virtual perimeter that allows you configure your Connect EZ
device to perform actions when entering or exiting the perimeter. For example, you can configure a
device to factory default if its location service indicates that it has been moved outside of the
geofence.
Multiple geofences can be defined for one device, allowing for a complex configuration in which
different actions are taken depending on the physical location of the device.
Required configuration items
n Location services must be enabled.
n The geofence must be enabled.
n The boundary type of the geofence, either circular or polygonal.
l If boundary type is circular, the latitude and longitude of the center point of the circle, and
the radius.
l If boundary type is polygonal, the latitude and longitude of the polygon's vertices (a vertex
is the point at which two sides of a polygon meet). Three vertices will create a triangular
polygon; four will create a square, etc. Complex polygons can be defined.
n Actions that will be taken when the device's location triggers a geofence event. You can define
actions for two types of events:
l Actions taken when the device enters the boundary of the geofence, or is inside the
boundary when the device boots.
l Actions taken when the device exits the boundary of the geofence, or is outside the
boundary when the device boots.
For each event type:
l Determine if the action(s) associated with the event type should be performed when the
device boots inside or outside of the geofence boundary.
l The number of update intervals that should take place before the action(s) are taken.
Multiple actions can be configured for each type of event. For each action:
l The type of action, either a factory erase or executing a custom script.
l If a custom script is used:
o
The script that will be executed.
o
Whether to log output and errors from the script.
o
The maximum memory that the script will have available.
o
Whether the script should be executed within a sandbox that will prevent the script from
affecting the system itself.
Additional configuration items
n Update interval, which determines the amount of time that the geofence should wait between
polling for updated location data.
Web