Crates.io | embedded-nano-mesh-cli-tool |
lib.rs | embedded-nano-mesh-cli-tool |
version | 1.2.0 |
source | src |
created_at | 2024-11-02 15:07:26.255669 |
updated_at | 2024-12-08 01:49:36.979823 |
description | Command line utility to interact with embedded-nano-mesh network trough shell |
homepage | |
repository | https://github.com/boshtannik/embedded-nano-mesh-cli-tool/ |
max_upload_size | |
id | 1432949 |
size | 71,079 |
This tool provides communication interface between linux CLI interface and embedded nano mesh network
It allows to:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
git clone https://github.com/boshtannik/embedded-nano-mesh-cli-tool.git
cd embedded-nano-mesh-cli-tool
cargo build --release && cp target/release/nano_mesh_cli_tool ./nano_mesh_cli_tool
./nano_mesh_cli_tool --help
user@user-debian:~/w/rust/arduino/nano_mesh_cli_tool$ ./nano_mesh_cli_tool \
send_to_exact \
--from-address=1 \
--to-address=3 \
--listen-period=250 \
--content="beep" \
--timeout=1000 \
--filter-out-duplication \
--lifetime=1 \
--port=/dev/ttyUSB0 \
&& echo $?
user@user-debian:~/w/rust/arduino/nano_mesh_cli_tool$ ./nano_mesh_cli_tool \
broadcast \
--from-address=1 \
--to-address=3 \
--listen-period=250 \
--content="beep" \
--timeout=1000 \
--filter-out-duplication \
--lifetime=1 \
--port=/dev/ttyUSB0 \
&& echo $?
user@user-debian:~/w/rust/arduino/nano_mesh_cli_tool$ ./nano_mesh_cli_tool \
ping \
--from-address=1 \
--to-address=3 \
--listen-period=250 \
--content="beep" \
--timeout=1000 \
--lifetime=1 \
--port=/dev/ttyUSB0 \
&& echo $?
user@user-debian:~/w/rust/arduino/nano_mesh_cli_tool$ ./nano_mesh_cli_tool \
transaction \
--from-address=1 \
--to-address=3 \
--listen-period=250 \
--content="beep" \
--timeout=1000 \
--lifetime=1 \
--port=/dev/ttyUSB0 \
&& echo $?
For more help of usage - use --help
argument.
You can use --help
for general program help, or for one of it's parts, such as send_to_exact
, broadcast
ping
transaction
receive
functions