Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community. X
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
Solved! Go to Solution.
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
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!