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 5, 2019
Hi,

As far as I googled - the problem is with string.match(...). In my opinion it should be written: string.match(s,”%d.%d”);
I’ll check it at home.