onvif
Version:
Client to ONVIF NVT devices Profile S: cameras
16 lines (13 loc) • 390 B
JavaScript
/**
* Discover ONVIF devices on the network
*
* Created by Roger Hardiman <opensource@rjh.org.uk>
*
*/
var onvif = require('./lib/onvif');
onvif.Discovery.on('device', function(cam,rinfo,xml){
// function will be called as soon as NVT responds
console.log('Reply from ' + rinfo.address);
console.log(cam.hostname + ':' + cam.port + cam.path);
})
onvif.Discovery.probe();