Legacy Support > ThingWorx XMPP Edge MicroServer (EMS) Software > Edge Thing Configuration at the Device > Edge Enhanced Thing > Basic Configuration
Basic Configuration
The example.lua file has a section at the top for file transfer and module configuration, as follows. These settings are discussed in more detail below.
-- ----------------------------------------------------------------------------------
-- The require statements pull a specified shape's functionality into the
-- template. A shape can define properties, services, and tasks, just like a
-- template. If the template defines a property, service, or task with the
-- same name as one defined in a shape, then the definition in the shape will
-- be ignored. Therefore, you must take care not to define characteristics
-- with duplicate names.
require "thingworx.shapes.filetransfer"
-- ----------------------------------------------------------------------------------

-- This line is required in all user defined templates. 'template.example'
-- should be replaced with the name of template, for example: 'template.mydevice'.

module ("templates.example", thingworx.template.extend)
A shape file is not really any different in structure than a template file. The idea is to create building block files of properties, services, and tasks, and identify them as shapes, which is consistent with the server model terminology. The expected location for these shape files is the \MicroServer\etc\custom\shapes folder. Using the require statement essentially adds the shape file configuration to the configuration in the template.
If you wish to utilize file transfer to or from this device, you must include the "require "thingworx.shapes.filetransfer" statement. File transfer will then be available through standard functionality.
Module Statement
The module statement shown above is required. It basically tells the edge software component to operate according to the configuration instructions in that file. The "thingworx.template.extend" should be as is, which tells the system the file is a template, and extends the base template implementation.