info:mbed_rpc_library_notes
Differences
This shows you the differences between two versions of the page.
info:mbed_rpc_library_notes [2011/02/22 10:01] – created tomgee | info:mbed_rpc_library_notes [2011/02/22 11:57] (current) – tomgee | ||
---|---|---|---|
Line 11: | Line 11: | ||
- Import the RPCInterface library | - Import the RPCInterface library | ||
- Put an include to RPCInterface.h | - Put an include to RPCInterface.h | ||
- | - declare | + | - declare |
+ | - link the vars to the RPCVariable class. | ||
+ | - Inside the javascript HTML page, call the RPC java program: | ||
+ | - Javascript: instantiate mbed: mbed = new HTTPRPC(); | ||
+ | - Javascript: create new var: var = new RPCVariable(mbed, | ||
+ | - Javascript: read var as follows: i = var.read(); | ||
+ | - Javascript: write vas as follows: var.write() = val; | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
info/mbed_rpc_library_notes.1298386891.txt.gz · Last modified: 2011/02/22 10:01 by tomgee