Suterusu

test

Sep 20th, 2014
248
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.33 KB | None | 0 0
  1. local computer = require("computer")
  2. local component = require("component")
  3. local event = require("event")
  4.  
  5. m = component.modem
  6.  
  7. m.open(1)
  8.  
  9. function listener(param, data1, data2)
  10.     print(param)
  11.     print(tostring(data1))
  12.     print(tostring(data2))
  13. end
  14.  
  15. local function test()
  16. event.listen("modem_message", listener)
  17. end
  18.  
  19. test()
Add Comment
Please, Sign In to add comment