| Crates.io | futuresdr-remote |
| lib.rs | futuresdr-remote |
| version | 0.0.5 |
| created_at | 2023-02-19 20:25:09.725265+00 |
| updated_at | 2025-04-28 14:18:39.932251+00 |
| description | Remote interaction library for FutureSDR. |
| homepage | https://www.futuresdr.org |
| repository | https://github.com/futuresdr/futuresdr/ |
| max_upload_size | |
| id | 789272 |
| size | 58,591 |
A library for remote interaction with a FutureSDR runtime, flowgraph, and its blocks through the REST API.
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(())
}