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

how to send a broadcast to a turtle

Started by james, 09 August 2013 - 10:30 PM
james #1
Posted 10 August 2013 - 12:30 AM
title: how to send a broadcast to a turtle

i don't know how to broadcast a message to a turtle so it can send a redstone pulse to do it can open a door from far away
Bubba #2
Posted 10 August 2013 - 10:12 AM
Split into new topic.
svdragster #3
Posted 10 August 2013 - 10:42 AM
You can use the Rednet API

There are also a couple of examples in the tutorials section of the forum.
Dave-ee Jones #4
Posted 11 August 2013 - 03:19 AM

-- Open the Modem
rednet.open(side)
-- Send string to Turtle
rednet.send(turtleID,string)
-- Close the Modem
rednet.close(side)

That should do it. Now you just need to make it so that if the turtle receives the certain string then it does something.