Posted 01 February 2013 - 12:05 PM
How do I do receive all rednet messages while running another program?
This other program also needs the information being received.
readfunction = function()
while true do
a,b,c=rednet.receive()
*pass relevant information to a queue or something*
end
end
Then start a coroutine with that function or something.
But how do I share this information?
(Maybe just a list with unprocessed messages, checking how many are left, poping the next message etc.)
This other program also needs the information being received.
readfunction = function()
while true do
a,b,c=rednet.receive()
*pass relevant information to a queue or something*
end
end
Then start a coroutine with that function or something.
But how do I share this information?
(Maybe just a list with unprocessed messages, checking how many are left, poping the next message etc.)