-
Notifications
You must be signed in to change notification settings - Fork 26
Description
Node Version: X.Y.Z
Node BACstack Version: X.Y.Z
- Bug Report
- [ x ] Feature Request
- [ x ] Question
Note: Make sure you have read the FAQs
before logging this issue.
Feature Request / Question
Hello all, my questio is quite simple, i wanty to read a property (present value for ex) so, the propertyID: 85
To test, i have downloaded this: http://bacnet.sourceforge.net/
and i run this command to query a property:
./bacrp --mac 192.168.1.12 1012 2 13 present-value
or
./bacrp --mac 192.168.1.12 1012 2 13 85
192.168.1.12
is ip of the device i want to query
1012
is the DEVICE instance
2
is the object-type (like analog, etc...)
13
os the OBJECT instance
property
85, for present value according to bacnet protocol.
According to the node-bacstack doc, to read a property, i need to:
const bacnet = require('node-bacnet');
const client = new bacnet();
client.readProperty('192.168.1.43', {type: 8, instance: 44301}, 28, (err, value) => {
console.log('value: ', value);
});
But, i cant put the OBJECT instance somewhere, so... what can i do ? I am quite stuck and i feel i am doing something wrong.. but i can see where