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

Wireless Connection

Started by GeneralZcool, 06 January 2014 - 10:19 AM
GeneralZcool #1
Posted 06 January 2014 - 11:19 AM
Hi. So I have been wondering how I could wirelessly connect a melee turtle to a computer, so I could make the melee turtle move and attack from the computer. All I know is that you have to use a wireless modem, but I don't know how that works, so if someone could tell me, that would be great. Thanks! ;)/>
gollark8 #2
Posted 06 January 2014 - 12:27 PM
You need a wireless melee turtle.
OReezy #3
Posted 06 January 2014 - 01:47 PM
This is the rednet API page on the wiki.
http://www.computerc...ki/Rednet_(API)

You need a wireless turtle and a wireless modem on your computer. This turns the modems on:
rednet.open("right")
Then you use these to send and receive:
rednet.send(id, "youre message")
id,message,distance = rednet.receive(optionalTimeout)
GeneralZcool #4
Posted 06 January 2014 - 10:06 PM
Is there a way to send commands wirelessly though?
CometWolf #5
Posted 07 January 2014 - 12:18 AM
Yes, that would be the aformentioned Rednet API.
OReezy #6
Posted 07 January 2014 - 12:20 AM
You take the variable that holds the message on the receiving end and have your turtle do something if it receives a certain message.