futuresdr-remote

Crates.iofuturesdr-remote
lib.rsfuturesdr-remote
version0.0.4
sourcesrc
created_at2023-02-19 20:25:09.725265
updated_at2023-11-23 18:33:29.805146
descriptionRemote interaction library for FutureSDR.
homepagehttps://www.futuresdr.org
repositoryhttps://github.com/futuresdr/futuresdr/
max_upload_size
id789272
size43,039
Bastian Bloessl (bastibl)

documentation

README

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(())
}
Commit count: 1012

cargo fmt