Lua Script Details
Users create software packages locally and upload them to the ThingWorx repository. Each Package consists of a ZIP file containing a Lua instruction script file (luaScriptResource), and any other files necessary to complete the functionality of that package. The Lua script extension includes the instructions that will be executed on the MicroServer once the MicroServer receives the package (that is, when the ThingWorx Software Content Management utility downloads the package to that asset).
The ThingWorx Websocket-based Edge MicroServer must be configured properly to receive package deployments. The WSEMS can be downloaded from the PTC ThingWorx eSupport portal, Download Center (minimum version: 5.2.2).
For more information on configuring WSEMS to enable package deployments, see the ThingWorx help center topics for the ThingWorx Websocket-based Edge MicroServer including:
  • WSEMS Lua Extensions
  • Service Implementation in Lua Script
  • WSEMS and Lua Script Resource Installation
  • Edge Enhanced Thing
: