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:
parent
48dd62035c
commit
b583073b98
@ -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",
|
||||
|
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user