mirror of
https://github.com/hubaldv/bioz-host-rs.git
synced 2025-12-06 05:11:17 +00:00
Included setting dft number from gui.
This commit is contained in:
@@ -9,6 +9,8 @@ use bioz_icd_rs::{
|
||||
StopImpedanceEndpoint,
|
||||
};
|
||||
|
||||
use crate::icd::IcdDftNum;
|
||||
|
||||
#[derive(Debug)]
|
||||
pub struct WorkbookClient {
|
||||
pub client: HostClient<WireError>,
|
||||
@@ -64,9 +66,10 @@ impl WorkbookClient {
|
||||
pub async fn start_impedancemeter(
|
||||
&self,
|
||||
frequency: u32,
|
||||
dft_number: IcdDftNum,
|
||||
) -> Result<(), WorkbookError<Infallible>> {
|
||||
self.client
|
||||
.send_resp::<StartImpedanceEndpoint>(&StartImpedance { update_frequency: 60, sinus_frequency: frequency })
|
||||
.send_resp::<StartImpedanceEndpoint>(&StartImpedance { update_frequency: 60, sinus_frequency: frequency, dft_number})
|
||||
.await?;
|
||||
Ok(())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user