Skip to main content

Crate fluke_connect_client

Crate fluke_connect_client 

Source
Expand description

Read live measurements from Fluke Connect Bluetooth Low Energy devices.

Fluke Connect meters and adapters (the ir3000 FC infrared adapter, the 3000 FC multimeter, the 376 FC and 902 FC clamps, and the t3000 / v3000 / a3000 FC modules) share one vendor GATT profile. This crate decodes that profile and, with the default ble feature, connects to devices and streams their readings.

§Layers

  • protocol: pure, I/O-free parsing of the binary reading record and the ASCII display string, the source-agnostic Measurement view over both, and the UUID table. Usable with default-features = false.
  • transport (feature std): a small async trait over a connected GATT peripheral so the client can be driven by any Bluetooth stack or by a test double.
  • client (feature std): the FlukeDevice type that subscribes to readings and exposes the housekeeping characteristics.
  • backend (feature ble): the built-in btleplug transport.
  • reconnect (feature ble): a supervised stream over any device subscription (measurements, readings, battery) that re-scans and reconnects with backoff when the connection drops.

§Hardware note

The protocol was verified against an ir3000 FC attached to a Fluke 289. Other family members are expected to work but have not been tested by the authors.

Re-exports§

pub use client::DeviceInfo;std
pub use client::FlukeDevice;std
pub use error::Error;std
pub use error::Result;std
pub use protocol::AsciiReading;
pub use protocol::AsciiState;
pub use protocol::Attribute;
pub use protocol::Decade;
pub use protocol::Function;
pub use protocol::Magnitude;
pub use protocol::Measurement;
pub use protocol::MeasurementNotification;
pub use protocol::ProtocolError;
pub use protocol::Reading;
pub use protocol::ReadingNotification;
pub use protocol::ReadingState;
pub use protocol::Unit;
pub use btleplug;ble

Modules§

backendble
Built-in Bluetooth transport backed by btleplug.
clientstd
High-level client for a connected Fluke Connect device.
errorstd
The crate-wide error type.
protocol
Wire-format parsing for the Fluke Connect Bluetooth Low Energy protocol: the binary reading record, the ASCII display string, the source-agnostic Measurement view over both, and the UUID table.
reconnectble
A device stream that survives disconnects.
transportstd
Abstraction over a connected GATT peripheral.