25 lines
453 B
Lua
25 lines
453 B
Lua
local function start()
|
|
print("GPS program started.")
|
|
end
|
|
|
|
local function stop()
|
|
print("GPS program stopped.")
|
|
end
|
|
|
|
local function restart()
|
|
stop()
|
|
start()
|
|
end
|
|
|
|
local function main()
|
|
print("Chat main loop running...")
|
|
while true do
|
|
local event = os.pullEvent()
|
|
if event == "char" then
|
|
print("GPS Char")
|
|
end
|
|
end
|
|
end
|
|
|
|
return { start = start, stop = stop, restart = restart, main = main }
|