plugin.Name = “TCPExample”;
plugin.sendCommandToDevice = sendCommandToDevice;
plugin.sendDefaultComand = sendDefaultComand;
plugin.PollingInterval = 0;
plugin.DefaultSettings = { “Host”: “192.168.1.44”, “Port”: “4998” };
var tcp = new TCPClient();
var tcpDeviceId = “terminal”;
var comando = “mdcmd_setmasteronmd\r\n comando”;
function sendCommandToDevice(comando) {
tcp.send(comando);
}
function sendDefaultComand() {
tcp.send(comando);
}
i made this script to send ip command,
is correct?