Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: ERR_TIMEOUT #137

Open
khensaurus opened this issue Jun 19, 2019 · 1 comment
Open

Error: ERR_TIMEOUT #137

khensaurus opened this issue Jun 19, 2019 · 1 comment

Comments

@khensaurus
Copy link

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)

if (err) {
    console.log(err)
}
client.close()

})

@Apollon77
Copy link

Please try with the updated fork at https://github.com/BiancoRoyal/node-bacstack

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants