Not a member of Pastebin yet?
                        Sign Up,
                        it unlocks many cool features!                    
                - local modem = peripheral.wrap("left")
 - print("Bienvenu dans le proggrame de gestion des robot MK1")
 - sleep(1)
 - print("Initialisation en cours :")
 - sleep(1)
 - print()
 - print("Quelle port utiliser ?")
 - port = read()
 - modem.open(3)
 - print("Initialisation terminer")
 - sleep(2)
 - clear
 - print("Recheche du serveur ")
 - local event, modemSide, senderChannel,
 - replyChannel, message, senderDistance = os.pullEvent("modem_message")
 - print("I just received a message on channel: "..senderChannel)
 - print("I should apparently reply on channel: "..replyChannel)
 - print("The modem receiving this is located on my "..modemSide.." side")
 - print("The message was: "..message)
 - print("The sender is: "..(senderDistance or "an unknown number of").." blocks away from me.")
 
Advertisement
 
                    Add Comment                
                
                        Please, Sign In to add comment