Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local e = require("event")
- local component = require("component")
- local m = component.modem
- function test()
- print("Test Sucessful")
- end
- function printMsg(e, laddr, raddr, p, d, type, usr, msg)
- type = type or " "
- if tostring(type) == "netnotify" then
- print("=======================================")
- print("NOTIFICATION from "..usr.." on "..raddr)
- print(msg)
- print("=======================================")
- end
- end
- function start()
- m.open(1)
- e.listen("modem_message", printMsg())
- end
Advertisement
Add Comment
Please, Sign In to add comment