NG initialize

You could create a new NG object with the aid of the initialize method.

def initialize ng_ip_address, username, password, port=9501

Code example 1 - Definition

Constructor parameters

Parameter name Value Description Default value Mandatory
ng_ip_address string value
e.g. '192.168.0.1'
IP address of Ozeki NG SMS Gateway. (None) Yes
username string value,
e.g. 'admin'
The username to connect Ozeki NG SMS Gateway. (None) Yes
password string value,
e.g. 'password'
The password for the given username. (None) Yes
port int value
e.g. 9501
The Ozeki NG SMS Gateway listener port. 9501 No

Example

ng = NG.new '192.168.0.1', 'admin', 'password'

Code example 2 - Create a new NG object

More information