3 releases

0.0.4 Nov 23, 2023
0.0.2 Jun 21, 2023
0.0.1 Feb 19, 2023

#1583 in Asynchronous

Download history 2/week @ 2024-02-14 10/week @ 2024-02-21 4/week @ 2024-02-28 4/week @ 2024-03-13 17/week @ 2024-03-27 36/week @ 2024-04-03

53 downloads per month

Apache-2.0

32KB
665 lines

FutureSDR Remote

A library for remote interaction with a FutureSDR runtime, flowgraph, and its blocks through the REST API.

Crates.io Apache 2.0 licensed Docs

Example

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(())
}

Dependencies

~4–18MB
~255K SLoC