Skip to content

Commit

Permalink
Change metadata RPC command to dev.metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
tkornack committed Nov 24, 2024
1 parent abfc569 commit 9047f12
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 14 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 7 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,19 +27,18 @@ And a variety of additional useful functions.

## Installation

On macOS and linux, there is a dependency on libudev; to install it use:
With rust language tools, install the tools using:

sudo apt install libudev-dev # debian linux
brew install libudev # macOS homebrew
cargo install twinleaf-tools

Now build:

cargo build --release
## Development

The resulting tools can be found in the target directory:
On macOS and linux, there is a dependency on libudev; to install it use:

sudo apt install libudev-dev # debian linux
brew install libudev # macOS homebrew

cd target/release
./tio-tool

## Cross compilation

Expand Down
4 changes: 2 additions & 2 deletions twinleaf-tools/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "twinleaf-tools"
version = "1.0.0"
version = "1.1.0"
edition = "2021"
license = "MIT"
description = "Tools for the Twinleaf I/O protocol for reading data from Twinleaf quantum sensors."
Expand All @@ -13,4 +13,4 @@ chrono = "0.4.38"
crossbeam = "0.8.4"
getopts = "0.2.21"
serialport = "4.5.1"
twinleaf = { version = "1.0.0", path = "../twinleaf" }
twinleaf = { version = "1.1.0", path = "../twinleaf" }
2 changes: 1 addition & 1 deletion twinleaf/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "twinleaf"
version = "1.0.0"
version = "1.1.0"
edition = "2021"
license = "MIT"
description = "Library for working with the Twinleaf I/O protocol and Twinleaf quantum sensors."
Expand Down
2 changes: 1 addition & 1 deletion twinleaf/src/data/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,7 @@ impl DeviceDataParser {
n_reqs
};
ret.push(util::PacketBuilder::make_rpc_request(
"data.metadata",
"dev.metadata",
&make_metareq((&reqs[0..n_reqs]).to_vec()),
7855,
DeviceRoute::root(),
Expand Down

0 comments on commit 9047f12

Please sign in to comment.