Advertisement
Guest User

comrun.lua

a guest
Jul 19th, 2019
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.21 KB | None | 0 0
  1. event=require('event')
  2. component=require('component')
  3. m=component.modem
  4. d=component.debug
  5. m.open(34051)
  6.  
  7. while true do
  8.   _,_,_,_,_,c,_,_ = event.pull('modem_message')
  9.   print('Command: '..c)
  10.   d.runCommand(c)
  11. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement