Constructor
new NetworkProxy(params)
Represents the server proxy information for the device
Parameters:
Name | Type | Description | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
params |
object | Initialization parameters
Properties
|
- Source:
Examples
// Proxy without authentication
var blinkup = require('blinkup/blinkupSDK');
var proxy = new blinkup.NetworkProxy({server: 'proxyServer2.local', port: '8000'});
// Proxy with authentication
var blinkup = require('blinkup/blinkupSDK');
var proxy = new blinkup.NetworkProxy({server: 'proxyServer2.local', port: '8000', username: 'user23', password: 'p@ssw0rd'});
// Proxy using globals rather than modules
var proxy = new BU.NetworkProxy({server: 'proxyServer2.local', port: '8000', username: 'user23', password: 'p@ssw0rd'});
Members
password
(Optional) The password of the proxy
- Source:
port
(Required) The server port running the proxy
- Source:
server
(Required) The server IP or hostname of the proxy
- Source:
username
(Optional) The username of the proxy
- Source:
Methods
isComplete()
Validates that the object represents a valid network configuration
- Source: