Troubleshooting the Lua Script Resource
Troubleshooting the Lua Script Resource
The following table discusses issues that can arise when using the Lua Script Resource, along with recommended solutions.
Problem
Possible Solution
I have a tunnel configured on my Thing (created using the RemoteThing Thing Template) on the ThingWorx Platform, but it is not working.
Verify that the Public Host and Public Port settings of the Tunnel Subsystem's Configuration are set to the externally available host name/IP and port.
The Thing that I have configured in config.lua cannot communicate with my Thing on the ThingWorx Platform.
Verify that the name of the Thing in your config.lua matches the name of the Thing on the ThingWorx Platform. You can also specify an identifier, if using matching names is a problem. Refer to Configuring File Transfers.
The EMS connects to the ThingWorx Platform, authenticates successfully, but the Thing that I specified in the auto_bind group of my config.lua file is not being created on the platform.
The auto_bind group is an array of objects. Verify that you enclosed the JSON object that represents your Thing in square brackets as follows:
“auto_bind”: [{
“name”: “RemoteThing001”,
“gateway:” true
}]
vs. the following, which leads to this scenario:
"auto_bind": {
"name": "RemoteThing001",
"gateway": true
}
For more information about the auto_bind group and setting the gateway parameter, refer to Configuring Automatic Binding for EMS and to Auto-bound Gateways
Was this helpful?