TCRouter
Last updated
Was this helpful?
Last updated
Was this helpful?
Manage the tc router device
Kind: global class
⇒ Promise
⇒ Promise
Manages socket api to TCRouter device
Param
Type
Description
ip
string
IP Address of the TC Router
port
number
TCP Port number of TC Router socket server
timeout
number
Timeout in milliseconds for the tcp client
Request mutable status info from the router and return last known values of static values
Send an SMS message to the TC Router
Param
Type
Description
contacts
Array
-
content
String
message content
Promise
Checks the TC router for an sms which has been received. Returns the contents of the sms. Should be acknowledged after receipt using the ackSmsRx function
Promise
Acknowledges the last received sms - TC Router then deletes this message from its history and is no longer accessible. Results of the message ack'd should be stored
Control outputs on the Router
Param
Type
Description
index
integer
Index of the output on the router which should be controlled
value
bool
False: turn output off, True: turn output on
Control data connection if configured correctly on device web page
Param
Type
Description
state
bool
turn connection on or off
Start or stop VPN connections
Param
Type
Description
type
number
0:ipsec,1:openvpn
index
number
Index/Number/ID of the desired vpn tunnel
state
boolean
0:turn off,1:turn on
Build, send, update, and return all device 'info'
Kind: instance method of Access: public
Kind: instance method of Access: public
Kind: instance method of Access: public
Kind: instance method of Access: public
Kind: instance method of Access: public
Kind: instance method of Access: public
Kind: instance method of Access: public
Kind: instance method of Access: public