Generate Go / TinyGo code using eRPC idl as input.
The examples are a rewrite of the code in the following URL to work with TinyGo.
Right now, it simply enumerates the eRPC calls.
- https://wiki.seeedstudio.com/Wio-Terminal-Wi-Fi/
- https://github.com/tinygo-org/drivers/tree/release/examples/wifinina
You can use the wio terminal to try out the code in the examples.
The examples can be flashed as follows.
After flashing, open the console and check the result.
$ tinygo flash --target wioterminal --size short ./examples/webclient/
First, flash testdata/wioterminal_passthrough/wioterminal_passthrough.uf2
.
After that, run the following.
The first time you run wioterminal after powering it on, the --init
option is required.
After that, do not add the --init
option.
$ go run ./examples/webclient/ --port COM59 --debug --init
$ go run ./examples/webclient/ --port COM59 --debug
It is important to note that the passthrough part is used for relaying, so high-speed and large data transmissions will often fail.