Advertisement
kwinto93

testOdbierz

Aug 17th, 2013
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.36 KB | None | 0 0
  1. local modem = peripheral.wrap("top") -- podłączam modem, który jest na górze komputera
  2. local channel = 5 -- standardowy kanał nadawczy
  3. local replyChannel = 1 -- standardowy kanał odbiorczy
  4.  
  5. modem.open(channel)
  6. modem.open(replyChannel)
  7.  
  8. local ArgModem = {os.pullEvent("modem_message")}
  9. modem.transmit(replyChannel, channel, "OK...")
  10. print(ArgModem[5])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement