This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

canX dali commands
#2
Thank you! 

How to use canxdali.sendqueries(req) correctly?

canxdali.sendcmds(req) works fine.

canxdali.sendqueries(req) returns an error: 
Quote:Library applibs/canxdali:676: bad argument #1 to 'ipairs' (table expected, got nil)
stack traceback:
[C]: in function 'ipairs'
Library applibs/canxdali:676: in function 'sendqueries'

I'm trying to do this (below):

Code:
canxdali = require('applibs.canxdali')

local data = {}

data = canxdali.sendqueries({
  lineid = 0,
  nodeid = 2,
  cmd = "queryactual",
  address = "s20",
    --value = data,
})

log(data)
Reply


Messages In This Thread
canX dali commands - by Daniel - 13.12.2019, 14:08
RE: canX dali commands - by Oleg - 26.03.2020, 12:53
RE: canX dali commands - by Daniel - 26.03.2020, 13:40
RE: canX dali commands - by admin - 26.03.2020, 15:26
RE: canX dali commands - by Oleg - 26.03.2020, 15:46
RE: canX dali commands - by davidsilva - 24.11.2022, 15:22
RE: canX dali commands - by Daniel - 24.11.2022, 15:29
RE: canX dali commands - by admin - 24.11.2022, 16:30

Forum Jump: