Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local component = require("component")
- local serialization = require("serialization")
- local term = require("term")
- local text = require("text")
- local handshake = 10
- local modem = component.modem
- modem.open(handshake)
- while true do
- event.listen("modem_message", function(_, _, remoteAddress, _, _, message)
- if message == "report" then
- modem.send(remoteAddress, handshake, "reporting")
- end
- end)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement