heyarne / arylic-uart-tcp-cli

Small CLI tool to interact with the Arylic TCP UART API.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Arylic TCP UART Command-Line-Tool

This is a very small (< 50 LOC) command line tool to interact with Arylic devices via their UART TCP API. It sends the command, and returns the response, nothing else.

usage: arylic-uart [option] ... 

A small CLI tool to interact with Arylic devices via the UART TCP API.

 Required:
 -c, --cmd VALUE                             The command you want to send, e.g. MCU+PAS+RAKOIT:VER
 -d, --device VALUE                          IP or URL (without protocol) of the Arylic device you want to send the command to

 Optional:
 -h, --help                                  Show this help message.

Will print the response when everything went well.

Build instructions

This project uses janet. It is set up using jpm and you can find its configuration in project.janet, the entry is in main.janet. .envrc and flake.nix take care of dependencies if you have direnv set up using nix flakes support.

To build run:

jpm deps
jpm build

You will find a arylic-uart executable in the build/ folder.

UART API Docs

About

Small CLI tool to interact with the Arylic TCP UART API.

License:GNU General Public License v3.0


Languages

Language:Nix 100.0%