Posted 28 November 2014 - 12:50 AM
i need help with a door client and server. i am using the mag strip cards from immibis peripherals
code
code
masterId = 3
reader = peripheral.wrap("left")
rednet.open("back")
while true do
event, data, side = os.pullEvent("mag_swipe")
rednet.send(3,data,143)
sId, msg, dist = rednet.receive("143")
term.setCursorPos(1,1)
if data == msg then
redstone.setOutput("right",true)
sleep(5)
redstone.setOutput("right",false)
end
end
Edited on 03 December 2014 - 02:51 AM