LuaSPOT is a script execution environment on SunSPOT, which of course uses Lua as the scripting language. The Lua script is executed using Kahlua, a Lua virtual machine implemented in Java.
LuaSPOT allows you to develop applications in Lua scripting language and run the applications on the Sun SPOT. Each application contains one or more function that can be invoked by sending a message in a certain format to the Sun SPOT. Therefore, we can see the Sun SPOT as a service provider that contains services which can be executed remotely.