Logic Machine Forum
read table - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8)
+--- Thread: read table (/showthread.php?tid=3210)



read table - arivera - 09.03.2021

Hello,
When I read this group address, it responds with this table, could you help me to read the elements to visualize it.
Thanks


log(grp.getvalue('0/5/4'))

Event for Error Pasarela Dali-1 (Linea 1) (0/5/1) 09.03.2021 21:56:29
* table:
["address"]
  * number: 2
["lamperror"]
  * bool: true
["ballasterror"]
  * bool: true








RE: read table - Erwin van der Zwart - 09.03.2021

data = grp.getvalue('0/5/4')

data.address
data.lamperror
data.ballasterror

Or if you only need one of them

grp.getvalue('0/5/4').lamperror