Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local fs = require('filesystem')
- local component = require('component')
- local event = require('event')
- local internet = component.proxy(component.internet.address)
- local network = component.proxy(component.modem.address)
- -- open the network port to get messages
- network.open(6566)
- -- Set rec port
- local recport = 4554
- while true do
- local _, recaddr, sendaddr, port, distance, message = event.pull("modem")
- if port == 4554 then
- print(message)
- computer.beep(1300)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement