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:
parent
3520d0705b
commit
a98180af09
3 changed files with 4 additions and 5 deletions
|
|
@ -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> {
|
||||||
|
|
|
||||||
|
|
@ -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> {
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue