Configuring a Lua Script Resource
When creating a Lua Script Resource (LSR), you create a configuration file, using the name, config.lua. This configuration file should be modeled after the example, config.lua.example. Your configuration file should be a text file that is separated into groups, with a group that sets logging levels, another one that configures edge things to run in the scripting environment, and a final one that defines any Lua Script extensions that are to be used by the Lua Script Resource.
To view this example of an LSR configuration file:
1. Open a command window or terminal session on the system or device that is hosting the Lua Script Resource.
2. Change into the \microserver\etc directory.
3. Make a copy of the config.lua.example file and name it config.lua.
4. Open both files in a text editor.
5. Use config.lua.example as a reference while learning about the various groups of the configuration file. Enter the values appropriate to your environment in your config.lua file.
The example file shows the main sections for configuring a Lua Script Resource. Follow the links below to read more about the properties of the configuration file: