27.03.2023, 10:10
Hi everyone!
I'm using the bacnet library to get all object under a bacnet device:
require('bacnet')
device, objects = bacnet.scandevice(1)
for _, object in ipairs(objects) do
log(object)
end
Everything is ok. This returns a table with all the info I need. The name, the type, and the present-value.
But when I try to decode the table:
object.name ===> works!!
object.type ===> works!!
object. present-value ===> fail !!
I do not know how to set the "-" in preset-value becouse returns fail due to only takes the first part.
How can I set the request to access that info?
Thanks!!
Kike
I'm using the bacnet library to get all object under a bacnet device:
require('bacnet')
device, objects = bacnet.scandevice(1)
for _, object in ipairs(objects) do
log(object)
end
Everything is ok. This returns a table with all the info I need. The name, the type, and the present-value.
But when I try to decode the table:
object.name ===> works!!
object.type ===> works!!
object. present-value ===> fail !!
I do not know how to set the "-" in preset-value becouse returns fail due to only takes the first part.
How can I set the request to access that info?
Thanks!!
Kike