Tutorial - Connect Raspberry Pi to ThingWorx: Error connection lua to EMS
- July 20, 2018
- 2 replies
- 1881 views
Hi together,
despite some issues with the Tutorial for guides/thingworx-raspberry-pi-quickstart (full configuration examples of config.json, config.lua are incomplete regarding ssl settings) I got my EMS up and running and connecting successfully to my Thingworx Development Trial environment. Also the LUA part is initializing everything fine up to the point when it's trying to "registerEdgeThing":
... exempt from luaScriptResource.log
[TRACE] 2018-07-20 08:11:40,927 PiThing: Calling registerEdgeThing. currently registered: false
[DEBUG] 2018-07-20 08:11:40,928 thingworx.server: Invoking /Thingworx/Things/LocalEms/Services/AddEdgeThing on server. content: {"keepalive":60000,"port":"8001","timeout":15000,"host":"localhost","proto":"http","name":"*PiThing","path":"/scripts/Thingworx"}
[TRACE] 2018-07-20 08:11:40,928 luaBindings:newRapClient: Found RAP at localhost:8080
[TRACE] 2018-07-20 08:11:40,928 luaBindings: Got RAP timeout: 5000
[TRACE] 2018-07-20 08:11:40,928 luaRapBindings: Self Signed certificates are enabled for the RAP conneciton.
[TRACE] 2018-07-20 08:11:40,928 luaRapBindings: Certificate validation is disabled for the RAP conneciton.
[DEBUG] 2018-07-20 10:11:40,929 SDK: twTlsClient_Create: Initializing TLS Client
where its getting stuck. For me this looks like the error descriped in Unable to bind Remote properties using Lua Script Resource even when the Remote Things is connected in EMS 5.4.0 .
Does anyone know where I can download an older version of EMS for RaspberryPi to check if this solves the problem ?
For further reference please find attached my relevant configuration and log files.

