We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gatt_client::read
gatt_client::run
For example, in ble_bas_central example:
ble_bas_central
let client: BatteryServiceClient = unwrap!(gatt_client::discover(&conn).await); // Read let reader = async { loop { // Keep reading the battery level let val = unwrap!(client.battery_level_read().await); info!("Read bat level: {} using read", val); } }; // Enable battery level notifications from the peripheral client.battery_level_cccd_write(true).await.unwrap(); // Receive notifications let client_run = gatt_client::run(&conn, &client, |event| match event { BatteryServiceClientEvent::BatteryLevelNotification(val) => { info!("battery level notification: {}", val); } }); // Run reader and client simultaneously join(reader, client_run).await;
The text was updated successfully, but these errors were encountered:
No branches or pull requests
For example, in
ble_bas_central
example:The text was updated successfully, but these errors were encountered: