Jump to content




Some problems with Rednet

wireless networking help

5 replies to this topic

#1 OverSpeed301

  • New Members
  • 3 posts

Posted 30 August 2012 - 09: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....h?v=O6qy1dU4VrQ), this guy type in a computer and the screen are imediatly refreshed, how did he do ?

#2 ardera

  • Members
  • 503 posts
  • LocationGermany

Posted 30 August 2012 - 09:17 AM

you have to enter () behing a function to call it so
id,message = rednet.receive
has to be
id,message = rednet.receive()


#3 KaoS

    Diabolical Coder

  • Members
  • 1,510 posts
  • LocationThat dark shadow under your bed...

Posted 30 August 2012 - 10:26 AM

and be sure that the second PC is ID 28

#4 OverSpeed301

  • New Members
  • 3 posts

Posted 30 August 2012 - 01: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.

#5 KaoS

    Diabolical Coder

  • Members
  • 1,510 posts
  • LocationThat dark shadow under your bed...

Posted 30 August 2012 - 01:57 PM

term.redirect(peripheral.wrap(side))

#6 OverSpeed301

  • New Members
  • 3 posts

Posted 30 August 2012 - 02:23 PM

Thanks, i will try it :)/>





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users