Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local PortMobile = 0
- local PingDB = 0
- local function PingOtherDevices()
- if PingDB >= 20 then
- rednet.send(1,"Hello")
- end
- PingDB = PingDB + 1
- end
- local function GetPings()
- local ID, message = rednet.receive(nil,.05)
- if message then
- print(ID.." : "..message)
- end
- end
- while true do
- sleep(.05)
- GetPings()
- PingOtherDevices()
- end
Add Comment
Please, Sign In to add comment