-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1646681
commit 98d5332
Showing
3 changed files
with
51 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,6 @@ | ||
# serial-cli | ||
A command line interface built in rust | ||
A command line interface built in rust designed to decode binary data from byte, int, and float types. Program runs with a configuration file called config.json. | ||
|
||
|
||
## How to start | ||
To start you can run the program in the main directory with ```cargo run```. This will read the config file in the main directory as well. Its recommended to run the program from the binary compiled with ```cargo build --release``` where the executable can be found in target/release. This comes with its own config file in the same directory. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
{ | ||
"baud": 9600, | ||
"start": "A", | ||
"start": "ª", | ||
"body": [ | ||
{"data_type": "float", "count": 2}, | ||
{"data_type": "int", "count": 1}, | ||
{"data_type": "byte", "count": 4} | ||
{"data_type": "float", "count": 19}, | ||
{"data_type": "byte", "count": 1}, | ||
{"data_type": "float", "count": 2} | ||
], | ||
"end": "Z" | ||
"end": "U" | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters