Skip to main content
16-Pearl
November 3, 2019
Question

rasperryPi with Thingworx issue

  • November 3, 2019
  • 1 reply
  • 5397 views

Hi all,

 

I'm trying to follow steps from https://developer.thingworx.com/en/resources/guides/thingworx-raspberry-pi-quickstart but my properties do not update (PiThing is connected).

 

I use Lua file taken from  step 8 PiTemplate.lua  

Running sudo ./luaScriptResource shows as bellow:

 

[ERROR] 2019-11-03 20:13:25,229 luaScriptProxy::execute: [-1242565552] Error executing script PiThing, Error = Error: ...worx/microserver/etc/custom/templates/PiTemplate.lua:63: attempt to perform arithmetic on local 's' (a nil value)
[ERROR] 2019-11-03 20:13:25,229 luaScriptProxy::app_unlock: [-1242565552] Attempt to unlock app_mutex while not holding it.L= 0x2068730

 

Any idea what is wrong

 

thx for all suggestions.

1 reply

16-Pearl
November 5, 2019

@Gucio Looks like this Lua file needs to be updated. I just reached out to the concerned team for the same and will provide you further updates as soon as I hear back from the team.

 

Thanks,

Vibhuti

Gucio16-PearlAuthor
16-Pearl
November 6, 2019

Hi @vangne 

 

I went one step further after setting:

s = string.match(s,"temp=(%d.%d)");

what is more I had to comment log line - there is also bug that I'll check later.

 

but unfortunately now I faced with other problem. After typing: sudo ./luaScriptResource - I get error code 500 as bellow:

 

[INFO ] 2019-11-06 10:56:14,382 PiThing: EMS is available: true, online: true
[WARN ] 2019-11-06 10:56:14,382 thingworx.server: Could not set properties on server. code: 500, resp:

 

Any Idea??

THX

7-Bedrock
April 17, 2020

I am having this same problem and downloaded the new PiTemplate file, but the issue wasn't fixed.  Any ideas?