You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
--This is the sister program to TardOS, TARDIS control program. It is very lightweight, and the only thing it does is send whatever message you type into it to the main control computer. It receives no feedback so make sure your TARDIS works before leaving it.
local event = require("event")
local term = require("term")
local component = require ("component")
tunnel = component.tunnel
function main()
term.clear()
print("TardOS Remote Control")
print("Available cmds: fly, setX var, setY var, setZ var, refuel, door, waypoint var, sos")
term.write("Input: ")
input = term.read()
tunnel.send(input)
print("Waiting for response")
local from, port, var1, var2, message = event.pull("modem_message")