1
0
Fork 0
mirror of https://codeberg.org/icewind/mitemp-rs.git synced 2026-06-03 17:24:08 +02:00

export bdaddr

This commit is contained in:
Robin Appelman 2020-02-08 01:10:50 +01:00
commit a98180af09
3 changed files with 4 additions and 5 deletions

View file

@ -5,8 +5,7 @@ Read Xiaomi MI Temperature and Humidity Sensor over BLE
## Usafe ## Usafe
```rust ```rust
use btleplug::api::BDAddr; use mitemp::{adapter_by_mac, listen, BDAddr};
use mitemp::{adapter_by_mac, listen};
use std::str::FromStr; use std::str::FromStr;
fn main() -> Result<(), btleplug::Error> { fn main() -> Result<(), btleplug::Error> {

View file

@ -1,5 +1,4 @@
use btleplug::api::BDAddr; use mitemp::{adapter_by_mac, listen, BDAddr};
use mitemp::{adapter_by_mac, listen};
use std::str::FromStr; use std::str::FromStr;
fn main() -> Result<(), btleplug::Error> { fn main() -> Result<(), btleplug::Error> {

View file

@ -2,7 +2,8 @@
#![allow(unused_variables)] #![allow(unused_variables)]
#![allow(unused_mut)] #![allow(unused_mut)]
use btleplug::api::{BDAddr, Central, CentralEvent}; pub use btleplug::api::BDAddr;
use btleplug::api::{Central, CentralEvent};
use btleplug::bluez::adapter::ConnectedAdapter; use btleplug::bluez::adapter::ConnectedAdapter;
use btleplug::bluez::manager::Manager; use btleplug::bluez::manager::Manager;
use btleplug::bluez::protocol::hci::LEAdvertisingData; use btleplug::bluez::protocol::hci::LEAdvertisingData;