Skip to main content
1-Visitor
Dec 13, 2018 12:40 PM UTC
Question

Can't connect from RPi to Thingworx EMS

I use Thingworx EMS connection. with help of config. json and config.lua files. After starting wmes.exe,I get "Successful connection" message, then I start luaScriptResource.exe I get the folloving text:

" [INFO ] 2018-12-13 12:08:14,378 PiThing: -- Starting script --------------------------
[INFO ] 2018-12-13 12:08:14,378 PiThing: Registering core callback handler
[INFO ] 2018-12-13 12:08:14,378 PiThing: Starting main loop
[INFO ] 2018-12-13 12:08:14,379 PiThing: Calling lifecycle start listeners.
[INFO ] 2018-12-13 12:08:14,379 shapes.propsubscribe: Initialized
[INFO ] 2018-12-13 12:08:14,385 thingworx.handler: Creating a new handler "

And nothing more. 

Maybe I make mistake but I don't know when. Help me, please. 

4 replies

20-Turquoise
Dec 13, 2018 9:08 PM UTC

Does your ThingWorx Composer application log show anything? 

Translate
1-Visitor
Dec 14, 2018 8:48 AM UTC

Yes, file in attachment. 

One more question: When I run on the command line sudo ./wsems, in Remote Thing   in the tab "All"  appear  thing "OtherPiThing" and tab "Unbound"  thing "PiThing" (in attachment  Thing1.jpg and Thing2.jpg), but, when I press "ctrl+c" in the command line, then they disappears. And  does not appear when I run sudo ./luaScriptResource. 
 Things "OtherPiThing" and "PiThing" I pointed in config.json

Translate
20-Turquoise
Dec 31, 2018 4:23 PM UTC

Please take a look at this thread to see if it helps:

https://community.ptc.com/t5/ThingWorx-Developers/Running-LSR-on-Raspberry-Pi/m-p/542669

Translate