Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.open("top")
- table = {"BTSHello", "Orange"}
- while true do
- event, id, txt, dis = os.pullEvent("rednet_message")
- print("odebrano")
- if txt == "HelloBTS" then
- --rednet.send(id, "test")
- rednet.send(id, textutils.serialize(table))
- print("wyslano")
- end
- if txt == "connectBTS" then
- rednet.send(id, "true")
- print("potwierdzono")
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement