Struct ophir::ea1::EA1
[−]
[src]
pub struct EA1 { /* fields omitted */ }
Methods
impl EA1
[src]
fn open(device_address: &str) -> Result<EA1>
Open a new connection to an EA1 ethernet adapter.
TODO: should initialize the connection to a known state after opening.
Examples
use ophir::ea1::EA1; let device = EA1::open("192.168.0.100:23");
fn new_power_session(&mut self) -> Result<Power, DeviceError>
Create a new power measurement session.
Examples
use ophir::ea1::EA1; use ophir::ea1::Mode; let mut device = EA1::open("192.168.0.100:23").unwrap(); let mut session = device.new_power_session().unwrap(); let result = session.measure();