Hello Lua

From Wiki for Dragino Project
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