Advertisement
guitarplayer616

transmit

Nov 25th, 2019
370
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.26 KB | None | 0 0
  1. --Usage: transmit [filename] Desc: sends a file to a drone for it to execute, requires custom drone eeprom
  2. component = require("component")
  3. m = component.modem
  4. args = {...}
  5.  
  6. f = io.open(args[1])
  7. strFile = f.read("*a")
  8. f.close()
  9.  
  10. m.broadcast(2412,strFile)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement