Skip to content

RPM Returns back object #30

@jscott3201

Description

@jscott3201

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

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions