connect

TLS. connect

new connect(ip, port, tankNames)

TLS API Interface

Parameters:
Name Type Description
ip String

TLS IP Address

port Number

TLS Port

tankNames Array

Product List

Source:

Methods

api(command, optionsopt, callbackopt)

Process TLS command

Parameters:
Name Type Attributes Description
command String

TLS function code

options Object <optional>

Set call options

callback function <optional>

Function to execute on completion

Source:

getTankNames(tanks, callbackopt)

Returns an array of tank names

Parameters:
Name Type Attributes Description
tanks Array

TLS tanks

callback function <optional>

callback function

Source:

getTanks(tanks, callbackopt)

Returns an array of tanks objects

Parameters:
Name Type Attributes Description
tanks Array

TLS tanks

callback function <optional>

callback function

Source:

request(command, completedopt)

Send TLS API request

Parameters:
Name Type Attributes Description
command String

TLS function code

completed function <optional>

Connection close callback

Source: