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
#4
sendqueries expects cmds table instead of a single cmd. This is fixed in CANx-DALI app version 20200326. Now the return value will depend on supplied arguments. Single cmd request will return query value on success. When cmds table is passed a table of values will be returned even when cmds table has only one command.

This will work in previous app version:
Code:
data = canxdali.sendqueries({
  lineid = 0,
  nodeid = 2,
  cmds = {
    { cmd = "queryactual", address = "s20" }
  }
})
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: