Legacy Support > ThingWorx XMPP Edge MicroServer (EMS) Software > Edge Thing Configuration at the Device > Edge Enhanced Thing > Task Definitions at the Edge
  
Task Definitions at the Edge
A task is a special type of service at the edge.
-- ------------------------------------------------------------------------------------------------

-- Tasks are Lua functions that are executed periodically by the ThingWorx Lua framework. They

-- can be used to execute background tasks, monitor resources, and fire events.

tasks.Compare = function(me)

-- Do task

end