Page 1 of 1

LUA. Ist this working

Posted: Friday 15 January 2016 16:47
by gertlind1
Either i have totally missed something on how it works or just doing it wrong.

I cant get below to work. Only the last commandArray gets updated.
If I remark the second commadArray the first one gets executed.

So, ist it possible to have several commandArrays to be executed?

Code: Select all

commandArray['UpdateDevice'] = '27|0|'..test
commandArray['UpdateDevice'] = '28|0|'..TempText..' '..test
return commandArray
Be nice to me :-)

Re: LUA. Ist this working

Posted: Friday 15 January 2016 17:02
by jcjames13009
Hi

If I'm right you have to use:

Code: Select all

commandArray[1] = {['UpdateDevice'] = '27|0|'..test}
commandArray[2] = {['UpdateDevice'] = '28|0|'..TempText..' '..test}
JC

Re: LUA. Ist this working

Posted: Saturday 16 January 2016 9:46
by gertlind1
Thanks JC, worked perfectly.

Re: LUA. Ist this working

Posted: Saturday 16 January 2016 12:32
by jcjames13009
:D