diff options
author | Attila Dusnoki <dati91@gmail.com> | 2016-12-12 11:19:03 +0100 |
---|---|---|
committer | Attila Dusnoki <dati91@gmail.com> | 2016-12-14 20:42:31 +0100 |
commit | 748b78a6bfd33ad51ee095ce85543c87ab2faf25 (patch) | |
tree | 7d9298015b80469a0f6a440d0ab01a0c37545059 /components/bluetooth_traits | |
parent | a2391162a12c5cfa00872ead33a1551d82c46594 (diff) | |
download | servo-748b78a6bfd33ad51ee095ce85543c87ab2faf25.tar.gz servo-748b78a6bfd33ad51ee095ce85543c87ab2faf25.zip |
Replace AdvertisingData with AdvertisingEvent
Diffstat (limited to 'components/bluetooth_traits')
-rw-r--r-- | components/bluetooth_traits/lib.rs | 6 |
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 { |