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

Community Tip - You can change your system assigned username to something more personal in your community settings. X

Error while running luaScriptResources

gabitudor
10-Marble

Error while running luaScriptResources

Hi, i am trying to connect my Pi to TW and after i got to the 10th step on the Guide I got this error while running sudo ./luaScriptResources

 

INFO ] 2019-06-03 19:16:00,37 PiThing: MicroServer is now available.
[INFO ] 2019-06-03 19:16:00,37 PiThing: MicroServer is online.
[INFO ] 2019-06-03 19:16:00,37 PiThing: Successfully registered PiThing with MicroServer.
[INFO ] 2019-06-03 19:16:00,200 PiThing: Error occured while accessing EMS. Checking isConnected.
[INFO ] 2019-06-03 19:16:00,205 PiThing: EMS is available: true, online: true
[INFO ] 2019-06-03 19:16:00,205 PiThing: Attempting to GetPropertySubscriptions from server failed. code: 500, result:

 

i am running wsems and luaScript at the same time 

 

I am attaching here the PiTemplate.lua, config.json and config.lua

ACCEPTED SOLUTION

Accepted Solutions

 Where did you get these sample files? They do not match the ones in the guide on developer.thingworx.com

 

scripts.PiThing = {
file = "thing.lua",
template = "PiTemplate",
identifier = "PiThing",
scanRate = 1000,
taskRate = 30000
}

 

Try removing the the `identifier` line from config.lua

View solution in original post

4 REPLIES 4

You may be looking at documentation that is not current. These lines should be removed from config.json:

"auto_bind": [{
"name": "PiThing",
"gateway": false
}],

I am not sure that will solve your problem.

 

Have you tried moving onto the next step and creating a remote Thing in ThingWorx COmposer

Hi, thank you for the replay!

 

i tried with both auto_bind and without and it did not work. And yes, i also tried to go further in the Guide but after creating the Remote Thing, it is not connected.

 

still getting the EMS error

 Where did you get these sample files? They do not match the ones in the guide on developer.thingworx.com

 

scripts.PiThing = {
file = "thing.lua",
template = "PiTemplate",
identifier = "PiThing",
scanRate = 1000,
taskRate = 30000
}

 

Try removing the the `identifier` line from config.lua

That worked! it s a bit strange because i tried like this before and added that line wondering if it is gonna work with it! 

 

Thank you!

Announcements


Top Tags