# FutureSDR Remote A library for remote interaction with a FutureSDR runtime, flowgraph, and its blocks through the REST API. [![Crates.io][crates-badge]][crates-url] [![Apache 2.0 licensed][apache-badge]][apache-url] [![Docs][docs-badge]][docs-url] [crates-badge]: https://img.shields.io/crates/v/futuresdr-remote.svg [crates-url]: https://crates.io/crates/futuresdr-remote [apache-badge]: https://img.shields.io/badge/license-Apache%202-blue [apache-url]: https://github.com/futuresdr/futuresdr/blob/master/LICENSE [docs-badge]: https://img.shields.io/docsrs/futuresdr-remote [docs-url]: https://docs.rs/futuresdr-remote/ ## Example ```rust use futuresdr_remote::Error; use futuresdr_remote::Handler; use futuresdr_remote::Remote; use futuresdr_types::Pmt; #[tokio::main] async fn main() -> Result<(), Error> { let remote = Remote::new("http://127.0.0.1:1337"); let fgs = remote.flowgraphs().await?; let blocks = fgs[0].blocks(); let p = blocks[0].callback(Handler::Id(0), Pmt::U32(123)).await?; println!("result: {:?}", p); Ok(()) } ```