(01.07.2016, 09:18)s.prathmesh Wrote: Okay. Now worked with Notepad.
But, the script not working and still not triggering command into Global Cache.
example from Russia:
code for event- based script
Code:
local socket = require("socket")
local tcp = assert(socket.tcp())
tcp:connect(IP_adress, port); -- IP_adress: IP adress
-- of GlobalCache
-- port: port number of
-- GlobalCache
-- default port: 4998
tcp:send(GC_Command); -- GC_Command: string to send to
-- GlobalCache
tcp:receive()
tcp:close()
example of command
Code:
DevIR05CmdH="sendir,1:1,1,37650,1,1,"; -- constant part of IR command
tcp:send(DevIR05CmdH ..
"341,171,21,21,21,21,21,64,21,21,21,21,21,21,21,21,21,21,21,64,21,64,21,21,21,64,21,64,
21,64,21,64,21,64,21,64,21,21,21,21,21,21,21,64,21,21,21,21,21,21,21,21,21,64,21,64,21,
64,21,21,21,64,21,64,21,64,21,1520,342,85,21,3765\r");
-- "\r" = "0D" (Hex) in LogicMachine.