-
Notifications
You must be signed in to change notification settings - Fork 21
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
use multi read #3
Labels
Comments
Please paste the whole code |
Connection is ok, read of single variable is ok. Example of multi read: var myHandles =[
{
symname: '.light.gp[0]',
bytelength: ads.INT,
},
{
symname: '.light.gp[1]',
bytelength: ads.INT,
}
];
var client = ads.connect(options, function() {
this.mulitRead(myHandles, function(err, handle) {
if (err) console.log(err)
console.log(handle.value)
});
}); |
Try to put this listeners to catch errors: client.on('notification', function(handle){
console.log(handle)
})
client.on('error', function(error) {
console.log(error)
}) I'm investigating the issue. |
@roccomuso it should work properly with 1.4.3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi
How can I use the multi read function? Tried to pass the handle as array, but didn't work.
Thank's for your advice.
Regards Heleon
The text was updated successfully, but these errors were encountered: