This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
OverSpeed301's profile picture

Some problems with Rednet

Started by OverSpeed301, 30 August 2012 - 08:01 AM
OverSpeed301 #1
Posted 30 August 2012 - 10:01 AM
Hello,

I have some problems with Rednet … i want to send a message between two computers


Computer 1 : (Sender)

rednet.open("right")
rednet.send(28, "TestMessage")

Computer 2 : (Receiver)

rednet.open("right")
id,message = rednet.receive
print(id)
print(message)

When i launch the receiver program (on the Computer 2) then i launch the sender (on the Computer 1), the receiver don't receive any message (no errors message too).

Any ideas ?

Thanks

EDIT : And another question, in this video (https://www.youtube.com/watch?v=O6qy1dU4VrQ), this guy type in a computer and the screen are imediatly refreshed, how did he do ?
ardera #2
Posted 30 August 2012 - 10:17 AM
you have to enter () behing a function to call it so

id,message = rednet.receive
has to be

id,message = rednet.receive()
KaoS #3
Posted 30 August 2012 - 11:26 AM
and be sure that the second PC is ID 28
OverSpeed301 #4
Posted 30 August 2012 - 02:00 PM
Okay, it works, the ID of the second PC is 33. Thanks ! :)/>/>

And for the screen do you have an idea ? When he type something it immediatly appear to the screen.

Thanks, and sorry for my bad english but i'm french.
KaoS #5
Posted 30 August 2012 - 02:57 PM
term.redirect(peripheral.wrap(side))
OverSpeed301 #6
Posted 30 August 2012 - 03:23 PM
Thanks, i will try it :)/>/>