First: Great work on this stack! Looking forward to using this more!
On the RPM call I receive an object back. Code samples with a Read Prop and RPM setup the same way
var bacnet = require('bacstack');
// Initialize BACStack
var client = bacnet({adpuTimeout: 6000});
// Read property
client.readProperty('192.168.7.72', 8, 240001, 77, null, function(err, value) {
console.log(value);
});
// Read Property Multiple
// Setup array of reads here
var requestArray = [{objectIdentifier: {type: 8, instance: 240001}, propertyReferences: [{propertyIdentifier: 77}]}];
// Invoke RPM on BACnet Link
client.readPropertyMultiple('192.168.7.72', requestArray, function(err, value) {
console.log(value);
client.close();
});
Log Output:
{ len: 34,
objectId: { type: 8, instance: 240001 },
property: { propertyIdentifier: 77, propertyArrayIndex: 4294967295 },
valueList: [ { len: 25, type: 7, value: 'Removed sensitive information' } ] }
undefined
Any input if you need more to work from I can toss your way! Codebase is more stable hopefully I can contribute as well
First: Great work on this stack! Looking forward to using this more!
On the RPM call I receive an object back. Code samples with a Read Prop and RPM setup the same way
Log Output:
Any input if you need more to work from I can toss your way! Codebase is more stable hopefully I can contribute as well