DustyHands

phoneSend

Feb 23rd, 2022
1,013
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.31 KB | None | 0 0
  1. rednet.open('back')
  2. wireless = peripheral.wrap('back')
  3.  
  4. function sendMessage(destination,message,protocol)
  5.     if destination and message then
  6.         rednet.send(destination,message,protocol)
  7.     end
  8. end
  9.  
  10. sendMessage(20631,'hey') --Change 20631 to the recieving computer's ID by typing id in the console
Advertisement
Add Comment
Please, Sign In to add comment