Posted 17 December 2014 - 12:39 PM
My receiving function is as follows:
I am wanting to receive a dynamic amount of messages within the timeout duration, and then save the messages and distances that are returned into a table for later use.
local receive = function(timeout)
modem.open(channel)
local _, _, _, _, message, distance = os.pullEvent("modem_message")
return message, distance
end
I am wanting to receive a dynamic amount of messages within the timeout duration, and then save the messages and distances that are returned into a table for later use.