Posted 23 August 2018 - 01:40 PM
How do I transfer function data from one computer to another
--# Computer 1 (id 1)
local function doStuff()
--# do stuff here that produces the result you need
end
rednet.send(2, result) --# send the result to computer id # 2
--# Computer 2 (id 2)
local id, message = rednet.recieve()
if id == 1 then --# if the data is sent from computer id # 1 then do the following...
--# do stuff with the message which will be the result sent from computer # 1
end