no error shown in the error log
this is code
value = event.getvalue()
if value==1
then
local socket = require("socket")
local tcp = assert(socket.tcp())
tcp:connect("192.168.43.18", 4998);
tcp
end("sendir,1:1,1,38000,1,1,172,172,22,64,22,64,22,64,22,21,22,21,22,21,22,21,22,21,22,64,22,64,22,64,22,21,22,21,22,21,22,21,22,21,22,64,22,21,22,21,22,64,22,64,22,21,22,21,22,64,22,21,22,64,22,64,22,21,22,21,22,64,22,64,22,21,22,1820\r"); -- GC_Command: transmit string
-- to controller GlobalCache
tcp:receive()
tcp:close()
end
this is code
value = event.getvalue()
if value==1
then
local socket = require("socket")
local tcp = assert(socket.tcp())
tcp:connect("192.168.43.18", 4998);
tcp
![Confused Confused](https://forum.logicmachine.net/images/smilies/confused.png)
-- to controller GlobalCache
tcp:receive()
tcp:close()
end