mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2024-11-26 15:32:05 +00:00
a3
This commit is contained in:
parent
cef87c2622
commit
0a69fd0056
|
@ -29,7 +29,7 @@ out/
|
|||
- simple:
|
||||
The simple application with WAMR runtime built in. See the usage of this application by executing "./simple -h".
|
||||
`./simple -h`
|
||||
>Note: The connection between simple and host_tool is TCP by default and this guide uses default connection. You can also use the UART mode. To achieve this you have to uncomment the below line in CMakeLists.txt and rebuild. You have to set up a UART hardware connection between 2 machines one of which runs the host_tool and the other runs the simple application. See the help of host_tool and the simple application to know how to specify UART device parameters.
|
||||
>Note: The connection between simple and host_tool is TCP by default and this guide uses default connection. You can also use the UART mode. To achieve this you have to uncomment the below line in CMakeLists.txt and rebuild. You have to set up a UART hardware connection between 2 machines one of which runs the host_tool and the other runs the simple application. See the help of host_tool and the simple application to know how to specify UART device parameters.<br/>
|
||||
`#add_definitions (-DCONNECTION_UART)`
|
||||
|
||||
- wasm-apps:
|
||||
|
@ -49,37 +49,37 @@ out/
|
|||
|
||||
Run
|
||||
==========================
|
||||
- Enter the out directory
|
||||
- Enter the out directory<br/>
|
||||
`cd ./out/`
|
||||
|
||||
- Startup the 'simple' process works in TCP server mode
|
||||
- Startup the 'simple' process works in TCP server mode<br/>
|
||||
`./simple -s`
|
||||
|
||||
You would see "App Manager started." is printed.
|
||||
You would see "App Manager started." is printed.<br/>
|
||||
`App Manager started.`
|
||||
|
||||
- Query all installed applications
|
||||
- Query all installed applications<br/>
|
||||
`./host_tool -q`
|
||||
|
||||
- Install the request handler wasm application
|
||||
- Install the request handler wasm application<br/>
|
||||
`./host_tool -i request_handler -f ./wasm-apps/request_handler.wasm`
|
||||
|
||||
- Send request to specific wasm application
|
||||
- Send request to specific wasm application<br/>
|
||||
`./host_tool -r /app/request_handler/url1 -A GET`
|
||||
|
||||
- Send a general request (not specify target application name)
|
||||
- Send a general request (not specify target application name)<br/>
|
||||
`./host_tool -r /url1 -A GET`
|
||||
|
||||
- Install the event publisher wasm application
|
||||
`./host_tool -i pub -f ./wasm-apps/event_publisher.wasm`
|
||||
`./host_tool -i pub -f ./wasm-apps/event_publisher.wasm`<br/>
|
||||
|
||||
- Subscribe event by host_tool
|
||||
- Subscribe event by host_tool<br/>
|
||||
`./host_tool -s /alert/overheat -a 3000`
|
||||
|
||||
- Install the event subscriber wasm application
|
||||
- Install the event subscriber wasm application<br/>
|
||||
`./host_tool -i sub -f ./wasm-apps/event_subscriber.wasm`
|
||||
|
||||
- Uninstall the wasm app
|
||||
- Uninstall the wasm app<br/>
|
||||
`./host_tool -u request_handler`
|
||||
`./host_tool -u pub`
|
||||
`./host_tool -u sub`
|
||||
|
|
Loading…
Reference in New Issue
Block a user