Thank you!
How to use canxdali.sendqueries(req) correctly?
canxdali.sendcmds(req) works fine.
canxdali.sendqueries(req) returns an error:
I'm trying to do this (below):
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)