1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
//!
//! This library provides communication with a Fluke 287/289 digital multimeter.
//!
//! <br>
//!
//! # Details
//!
//! - You need a Fluke IR cable attached to your DMM.
//!
//! - Basic setup and connection
//!
//! ```
//! use f289ctrl::{Device, DEFAULT_BAUDRATE};
//! #[tokio::main]
//! async fn main() -> f289ctrl::Result<()> {
//! let path = "/dev/ttyUSB0".to_string();
//! let mut device = Device::new(&path, DEFAULT_BAUDRATE)?;
//! eprintln!("Connected to: {}\n", device.ident().await?.model);
//! Ok(())
//! }
//! ```
//!
//! # Supported devices
//!
//! * Fluke 287
//! * Fluke 289
//!
pub use Device;
pub use Result;
pub const DEFAULT_TTY: &str = "/dev/ttyUSB0";
pub const DEFAULT_TTY: &str = "COM1";
/// Default Baudrate for Fluke 287 and 289.
pub const DEFAULT_BAUDRATE: u32 = 115200;