#bluetooth #apple #beats #airpod

airinfo

Small library to read battery and status info from Airpods and Beats

1 unstable release

0.1.0 Jan 22, 2024

#1277 in Hardware support

BSD-3-Clause

11KB
196 lines

Airinfo

A library to read battery and status info from Airpods and Beats

Example

use airinfo::find_pods;

#[tokio::main(flavor = "current_thread")]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
    let pods = find_pods().await?;
    for pod in pods {
        println!("POD: {:#?}", pod);
    }
    Ok(())
}

Dependencies

~5–34MB
~506K SLoC