Advertisement
Guest User

BTS

a guest
Jul 18th, 2018
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. rednet.open("top")
  2. table = {"BTSHello", "Orange"}
  3. while true do
  4. event, id, txt, dis = os.pullEvent("rednet_message")
  5. print("odebrano")
  6. if txt == "HelloBTS" then
  7. --rednet.send(id, "test")
  8. rednet.send(id, textutils.serialize(table))
  9. print("wyslano")
  10. end
  11. if txt == "connectBTS" then
  12. rednet.send(id, "true")
  13. print("potwierdzono")
  14. end
  15. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement