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

Advanced Pocket Computer Wireless Modem Question

Started by Televiewed, 29 May 2014 - 11:51 PM
Televiewed #1
Posted 30 May 2014 - 01:51 AM
Well, I've been trying to send signals from my Pocket Computer to a mother computer which will then open my doors, but it hasn't been working, I was hoping you could tell me why it isn't.

COMPUTER CODE


term.clear()
rednet.open("top")
local c, d = rednet.recieve()
if d == "door" then
    rs.setOutput("front", true)
    sleep(2)
    rs.setOutput("front", false)
end

POCKET CODE


term.clear()
rednet.open("back")
local a, b = os.pullEvent("key")
if b == "28" then
    rednet.send(6, "door")
end
Bomb Bloke #2
Posted 30 May 2014 - 02:30 AM
You could start by reading the explanation the computer gives you - you can't call a function called "rednet.recieve()" for eg, because it doesn't exist under that spelling. ;)/>

Run through your mental check list of things that are obvious to check (eg, is 6 the right ID to be sending to?), and write them out here as you try them along with the results.
CreeperGoBoom #3
Posted 30 May 2014 - 07:36 AM
i before e except after c
therefore:

local c, d = rednet.recieve()


should be:

local c, d = rednet.receive()


happy coding ;)/>