Advertisement
akihex

jobMon

Aug 7th, 2014
228
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.38 KB | None | 0 0
  1. local channel = 11
  2. local ae = peripheral.find("appeng_me_tilecontroller")
  3.  
  4. local wifi = peripheral.find("modem")
  5. if not wifi.isWireless() then wifi = nil end
  6.  
  7. wifi.open(channel)
  8.  
  9. while true do
  10.   local event, modemSide, senderChannel, replyChannel, message, senderDistance = os.pullEvent("modem_message")
  11.   local list = ae.getJobList()
  12.   wifi.transmit(channel,channel,list)
  13. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement