Methods
startProbe(callbackopt)
Start a Discovery probe.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
callback |
callback |
<optional> |
Optional callback, instead of a Promise. |
- Source:
Example
const OnvifManager = require('onvif-nvt')
OnvifManager.add('discovery')
OnvifManager.discovery.startProbe().then(deviceList => {
console.log(deviceList)
// 'deviceList' contains all ONVIF devices that have responded.
// If it is empty, then no ONVIF devices
// responded back to the broadcast.
})
stopProbe(callbackopt)
Stop a Discovery probe.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
callback |
callback |
<optional> |
Optional callback, instead of a Promise. |
- Source: