Posted 06 July 2013 - 03:18 PM
Im trying to send a message with rednet to another computer but it dosent seem to want to work.
im using open peripherals to get a signal from a quarry so that i can tell if its active or not and sending that through rednet to a computer that connects to a monitor and prints the true false message that should be being sent but it dosent seem to work
here is the code for computer hooked to quarry sending the message
and here is the code for the second computer receiving the message and writing it to the screen
if anyone can tell me what im doing wrong id be very appriciative thanks :D/>
im using open peripherals to get a signal from a quarry so that i can tell if its active or not and sending that through rednet to a computer that connects to a monitor and prints the true false message that should be being sent but it dosent seem to work
here is the code for computer hooked to quarry sending the message
rednet.open("right")
net = peripheral.wrap("back")
net = net.callRemote("quarry_1","isActive")
while true do
rednet.send(13,net)
sleep(0.5)
end
and here is the code for the second computer receiving the message and writing it to the screen
rednet.open("left")
local monitor = peripheral.wrap("top")
while true do
id,message = rednet.receive()
monitor.write(message)
sleep(0.5)
end
if anyone can tell me what im doing wrong id be very appriciative thanks :D/>