aboutsummaryrefslogtreecommitdiffstats
path: root/components/bluetooth_traits
diff options
context:
space:
mode:
Diffstat (limited to 'components/bluetooth_traits')
-rw-r--r--components/bluetooth_traits/lib.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/components/bluetooth_traits/lib.rs b/components/bluetooth_traits/lib.rs
index 761173eb32f..5246f4fbe3d 100644
--- a/components/bluetooth_traits/lib.rs
+++ b/components/bluetooth_traits/lib.rs
@@ -31,10 +31,6 @@ pub struct BluetoothDeviceMsg {
// Bluetooth Device properties
pub id: String,
pub name: Option<String>,
- // Advertising Data properties
- pub appearance: Option<u16>,
- pub tx_power: Option<i8>,
- pub rssi: Option<i8>,
}
#[derive(Deserialize, Serialize)]
@@ -93,6 +89,7 @@ pub enum BluetoothRequest {
ReadValue(String, IpcSender<BluetoothResponseResult>),
WriteValue(String, Vec<u8>, IpcSender<BluetoothResponseResult>),
EnableNotification(String, bool, IpcSender<BluetoothResponseResult>),
+ WatchAdvertisements(String, IpcSender<BluetoothResponseResult>),
Test(String, IpcSender<BluetoothResult<()>>),
Exit,
}
@@ -112,6 +109,7 @@ pub enum BluetoothResponse {
ReadValue(Vec<u8>),
WriteValue(Vec<u8>),
EnableNotification(()),
+ WatchAdvertisements(()),
}
pub trait BluetoothResponseListener {