1
0
mirror of https://github.com/elua/elua.git synced 2025-01-25 01:02:54 +08:00

Minor typos and doc enhancements

This commit is contained in:
Dado Sutter 2010-11-22 23:31:40 +00:00
parent 48dd62035c
commit b583073b98
2 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@ data_en =
{ text = [[// eLua CAN ID types
enum
{
ELUA_CAN_ID_STD = 0, // exported as $net.ID_STD$
ELUA_CAN_ID_STD = 0, // exported as $can.ID_STD$
ELUA_CAN_ID_EXT, // exported as $can.ID_EXT$
};]],
name = "CAN ID types",

View File

@ -247,7 +247,7 @@ You can omit the <i>-s</i> (strip) parameter from compilation, but this will res
</ul>
<a name="rpc"><h3>Controlling eLua with LuaRPC</h3></a>
<p><i>Remote procedure calls</i> (RPC) allow one program to communicate with another and call functions or subroutines within the second program. For example one might want to programmatically control an array of LEDs connected to an eLua embedded device from a desktop Lua state. A simple implementation might be a protocol that would allow one to send commands numeric or text-based commands that would cause code to be executed in eLua that would change the state of the LEDs. As one needs new commands to change these LEDs, one would need to upload a new Lua program to handle changing functionality. In contrast to this ad-hoc method for remote calls, LuaRPC provides a more general way to manipulate the state and execution of a remote Lua environment.</p>
<p><i>Remote procedure calls</i> (RPC) allow one program to communicate with another and call functions or subroutines within the second program. For example one might want to programmatically control an array of LEDs connected to an eLua embedded device from a desktop Lua state. A simple implementation might be a protocol that would allow one to send numeric or text-based commands that would cause code to be executed in eLua that would change the state of the LEDs. As one needs new commands to change these LEDs, one would need to upload a new Lua program to handle changing functionality. In contrast to this ad-hoc method for remote calls, LuaRPC provides a more general way to manipulate the state and execution of a remote Lua environment.</p>
<p>When a client is connected to a LuaRPC server, it can interact with it in the following ways:</p>
<ul>
<li>assign values to new or existing variables in the server state</li>