Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --os.pullEvent() = os.pullEventRaw()
- --Variables
- local pressure = 0
- local purpose = "Pressure Reg"
- local group = 1
- serverID = 999
- returnChan = 9
- protocol = "unknown"
- --APIs
- os.loadAPI("laserMenu")
- --Functions
- function getReturnInfo()
- rednet.open("top")
- print("Waiting for Return Channel")
- serverID, returnChan, protocol = rednet.receive(20)
- if serverID > 0 then
- print("Successful Connecttion!")
- print(serverID)
- print(returnChan)
- print(protocol)
- else
- print("ERROR!")
- end
- return serverID,returnChan,protocol
- end
- print("Pre call...")
- print(serverID)
- print(returnChan)
- print(protocol)
- serverID,returnChan,protocol = getReturnInfo()
- print("Almost done...")
- print(serverID)
- print(returnChan)
- print(protocol)
- --print(altID)
- sleep(20)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement