You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm new in bacnet and i'm trying to do a integration where I can pull all the values from the device.. Whenever I used readPropertyMultiple I always get value: undefined and Error: ERR_TIMEOUT. Here's my code:
Hi,
I'm new in bacnet and i'm trying to do a integration where I can pull all the values from the device.. Whenever I used readPropertyMultiple I always get value: undefined and Error: ERR_TIMEOUT. Here's my code:
'use strict'
const bacnet = require('bacstack')
let connectionString = '172.29.240.1'
// Initialize BACStack
const client = new bacnet({adpuTimeout: 10000})
// Discover Devices
client.on('iAm', (device) => {
console.log('address: ', device.address)
console.log('deviceId: ', device.deviceId)
console.log('maxApdu: ', device.maxApdu)
console.log('segmentation: ', device.segmentation)
console.log('vendorId: ', device.vendorId)
})
client.whoIs()
// Read Device Object
const requestArray = [{
objectId: { type: 8, instance: 409719 },
properties: [{ id: 8 }]
}]
client.readPropertyMultiple(connectionString, requestArray, (err, value) => {
console.log('value', value)
})
The text was updated successfully, but these errors were encountered: