Class: StaticAddressing

blinkupSDK~StaticAddressing

Configure static networking information for imp configuration.

Constructor

new StaticAddressing(params)

Parameters:
Name Type Description
params object Initialization parameters
Properties
Name Type Attributes Description
ip string The IP of the device to be configured
netmask string The netmask of the device to be configured
gateway string The gateway of the device to be configured
dns1 string The seconday dns of the device to be configured
dns2 string <optional>
The seconday dns of the device to be configured
Source:
Examples
// Use static network addressing with a single DNS
var blinkup = require('blinkup/blinkupSDK');
var addressing = new blinkup.StaticAddressing({ip: '192.168.1.200', netmask: '255.255.0.0', gateway: '192.168.1.1', dns1: '8.8.8.8'});
// Use static network addressing with a two DNS servers
var blinkup = require('blinkup/blinkupSDK');
var addressing = new blinkup.StaticAddressing({ip: '192.168.1.200', netmask: '255.255.0.0', gateway: '192.168.1.1', dns1: '8.8.8.8', dns2: '8.8.4.4'});
// Using globals rather than modules
var addressing = new BU.StaticAddressing({ip: '192.168.1.200', netmask: '255.255.0.0', gateway: '192.168.1.1', dns1: '8.8.8.8'});

Members

dns1

(Required) The dns of the device to be configured
Source:

dns2

(Optional) The seconday dns of the device to be configured
Source:

gateway

(Required) The gateway of the device to be configured
Source:

ip

(Required) The IP of the device to be configured
Source:

netmask

(Required) The netmask of the device to be configured
Source:

Methods

isComplete()

Validates that the object represents a valid network configuration
Source: