PR feedback

This commit is contained in:
Marshall Pierce
2023-07-26 13:32:12 -06:00
parent afb21220e2
commit 91971433d2
14 changed files with 163 additions and 151 deletions
+7 -5
View File
@@ -13,11 +13,13 @@
// limitations under the License.
use anyhow::anyhow;
use bumble::wrapper::{
use bumble::{
adv::{AdvertisementDataBuilder, CommonDataType},
device::Device,
logging::{bumble_env_logging_level, py_logging_basic_config},
transport::Transport,
wrapper::{
device::Device,
logging::{bumble_env_logging_level, py_logging_basic_config},
transport::Transport,
},
};
use clap::Parser as _;
use pyo3::PyResult;
@@ -61,7 +63,7 @@ async fn main() -> PyResult<()> {
)
.map_err(|e| anyhow!(e))?;
device.set_advertisement(adv_data)?;
device.set_advertising_data(adv_data)?;
device.power_on().await?;
println!("Advertising...");