mirror of
https://github.com/tio/tio.git
synced 2026-05-01 14:57:59 +02:00
Clean up lua API
Rename modem_send() to send() Rename send to write()
This commit is contained in:
parent
4511d74a9e
commit
c49faa7337
6 changed files with 55 additions and 44 deletions
|
|
@ -1,13 +1,13 @@
|
|||
read(1000, 8000) -- read initial config
|
||||
send("\n")
|
||||
write("\n")
|
||||
read(650, 100) -- main menu
|
||||
send("S") -- S menu
|
||||
write("S") -- S menu
|
||||
n = 1
|
||||
while n > 0 do -- while not empty, read more
|
||||
n, str = read_line(25)
|
||||
end
|
||||
while true do
|
||||
send("t") -- query PV table
|
||||
write("t") -- query PV table
|
||||
msleep(880)
|
||||
n = 1
|
||||
while n > 0 do -- while not empty, read more
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue