Posted 23 July 2014 - 06:11 AM
So, I was trying to trigger an even (in this case,
Thanks in advance!
EDIT: I took a look at the output and I found out that the computer had just sent it's own ID? I used the following in the Lua console:
print("Correct")
and print(rec)
) but for some reason it triggers that the message isn't correct even when I broadcast the correct message. Can someone help me out? Thanks.
rednet.open("left)
rec = rednet.receive()
if rec == "Test" then
print("Correct")
print(rec)
else
print("Incorrect")
print(rec)
end
Thanks in advance!
EDIT: I took a look at the output and I found out that the computer had just sent it's own ID? I used the following in the Lua console:
rednet.broadcast("Test")
Edited on 23 July 2014 - 04:14 AM