Hello Lua

From Wiki for Dragino Project
Revision as of 08:02, 11 May 2011 by Edwin (Talk | contribs) (Created page with "lua is a powerful, fast, lightweight language for embedded system. You can use lua for programming in Dragino. This page is for the starter of lua and provide example to call l...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

lua is a powerful, fast, lightweight language for embedded system.

You can use lua for programming in Dragino. This page is for the starter of lua and provide example to call lua script in Dragino. if you are familiar with lua already. you can obmit this page.

Hello Dragino

Print "hello dragino" in the SSH access.

simpily add the print('Hello, Dragino') in a file and use lua to execute it.

root@dragino:~# cat hello.lua
print ('hello, Dragino')
root@dragino:~# lua hello.lua
hello, Dragino