cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X

Not Able to Register RemoteThing on EMS using Lua Script

pbatwal
7-Bedrock

Not Able to Register RemoteThing on EMS using Lua Script

Hi Team - 

I am trying to run the Respberry Pi example from the Guides.

Everything is working fine and my TW Server, EMS Server and LuaResource is talking to each other. 

However - LuaResource is NOT able to register the RemoteThing on EMS server. 

Its getting stuck at 

 

[DEBUG] 2018-03-01 15:13:19,864 thingworx.server: Invoking /Thingworx/Things/LocalEms/Services/AddEdgeThing on server. content: {"keepalive":60000,"port":"8001","timeout":15000,"host":"127.0.0.1","proto":"http","name":"*ExampleThing","path":"/scripts/Thingworx"}
[TRACE] 2018-03-01 15:13:19,865 luaBindings:newRapClient: Found RAP at 127.0.0.1:8080
[TRACE] 2018-03-01 15:13:19,865 luaBindings: Got RAP timeout: 0
[TRACE] 2018-03-01 15:13:19,865 luaRapBindings: Self Signed certificates are enabled for the RAP conneciton.
[TRACE] 2018-03-01 15:13:19,865 luaRapBindings: Certificate validation is disabled for the RAP conneciton.
[DEBUG] 2018-03-01 15:13:19,866 SDK: twTlsClient_Create: Initializing TLS Client

 

it makes a call to EMS server and waits for sometime and EMS server closes the twTlsClient.

 

Any suggestions pls? Attached is Config.jason and Config.lua files...

4 REPLIES 4
CRArko
17-Peridot
(To:pbatwal)

The Raspberry Pi Quickstart guide has been updated with a link to download the latest version of EMS and instructions for connecting to the hosted trial ThingWorx instances that now use https.

 

https://developer.thingworx.com/resources/guides/thingworx-raspberry-pi-quickstart/install-ems

 

Per our messages, it also sounds like the ThingWorx SDK was a better solution for you.

 

-- Craig A.

pbatwal
7-Bedrock
(To:CRArko)

Thanks Craig. Yes.. I think rather than investing so much time in EMS and learning Lua Script, its best to use C or Java SDK. It gives you more control.

 

BTW - I am not able to figure out what was changed in EMS server new documentation?

pbatwal
7-Bedrock
(To:pbatwal)

Craig - Its still not working - Same Issue ! 

Were you able to connect to your EMS expert in Germany?

SaurabhHCL
6-Contributor
(To:pbatwal)

I am also facing the same problem.

Running lua script in raspberry pi stuck at 

 

[INFO ] 2018-12-14 21:36:56,534 thingworx.handler: Creating a new handler.
[DEBUG] 2018-12-14 21:36:56,538 thingworx.server: Invoking /Thingworx/Things/LocalEms/Services/AddEdgeThing on server. content: {"keepalive":60000,"port":"8001","timeout":15000,"host":"192.168.1.101","proto":"http","name":"PiThing","path":"/scripts/Thingworx"}
[DEBUG] 2018-12-14 21:36:56,538 SDK: twTlsClient_Create: Initializing TLS Client

 

 

Kindly help...!!!

Top Tags