From 072574b35b9118726faa10908c5c4aa4bccdb4c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Pol=C3=A1=C4=8Dek?= Date: Sun, 24 Nov 2024 19:57:49 +0100 Subject: [PATCH] Entering name works, not MAC address --- examples/basic_ble.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/basic_ble.rs b/examples/basic_ble.rs index 9509e38..3728216 100644 --- a/examples/basic_ble.rs +++ b/examples/basic_ble.rs @@ -10,17 +10,17 @@ use meshtastic::utils; async fn main() -> Result<(), Box> { let stream_api = StreamApi::new(); - println!("Enter the MAC address of a BLE device to connect to:"); + println!("Enter the short name of a BLE device to connect to:"); let stdin = io::stdin(); - let entered_address = stdin + let entered_name = stdin .lock() .lines() .next() .expect("Failed to find next line") .expect("Could not read next line"); - let ble_stream = utils::stream::build_ble_stream(entered_address).await?; + let ble_stream = utils::stream::build_ble_stream(entered_name).await?; let (mut decoded_listener, stream_api) = stream_api.connect(ble_stream).await; let config_id = utils::generate_rand_id();