Class: Credential

Credential()

Constructor

new Credential()

Source:

Methods

createRequest(body)

Private function for creating a SOAP request.
Parameters:
Name Type Description
body string The body of the xml.
Source:

init(timeDiff, serviceAddress, usernameopt, passwordopt)

Call this function directly after instantiating a Credential object.
Parameters:
Name Type Attributes Description
timeDiff number The onvif device's time difference.
serviceAddress object An url object from url package - require('url').
username string <optional>
Optional only if the device does NOT have a user.
password string <optional>
Optional only if the device does NOT have a password.
Source: