aboutsummaryrefslogtreecommitdiffstats
path: root/components/net_traits/bluetooth_thread.rs
diff options
context:
space:
mode:
authorfokinv <fokin.valentin@stud.u-szeged.hu>2016-03-31 10:35:24 +0200
committerAttila Dusnoki <dati91@gmail.com>2016-05-03 10:17:42 +0200
commitb01c52c18fc0a5280861b1d6339ca83c8a9a1b06 (patch)
tree1de77cdea0914bd9535e9a909a6594474c95eb25 /components/net_traits/bluetooth_thread.rs
parent9825ea41b49e4cff5ccccaef0dbeef9a982d7010 (diff)
downloadservo-b01c52c18fc0a5280861b1d6339ca83c8a9a1b06.tar.gz
servo-b01c52c18fc0a5280861b1d6339ca83c8a9a1b06.zip
Implementation of the getPrimaryService(s), the getCharacteristic(s) and the getDescriptor(s) functions.
Diffstat (limited to 'components/net_traits/bluetooth_thread.rs')
-rw-r--r--components/net_traits/bluetooth_thread.rs18
1 files changed, 15 insertions, 3 deletions
diff --git a/components/net_traits/bluetooth_thread.rs b/components/net_traits/bluetooth_thread.rs
index 86bdffc1fff..c035a1ea164 100644
--- a/components/net_traits/bluetooth_thread.rs
+++ b/components/net_traits/bluetooth_thread.rs
@@ -8,9 +8,12 @@ pub enum BluetoothMethodMsg {
RequestDevice(IpcSender<BluetoothObjectMsg>),
GATTServerConnect(String, IpcSender<BluetoothObjectMsg>),
GATTServerDisconnect(String, IpcSender<BluetoothObjectMsg>),
- GetPrimaryService(String, IpcSender<BluetoothObjectMsg>),
- GetCharacteristic(String, IpcSender<BluetoothObjectMsg>),
- GetDescriptor(String, IpcSender<BluetoothObjectMsg>),
+ GetPrimaryService(String, String, IpcSender<BluetoothObjectMsg>),
+ GetPrimaryServices(String, Option<String>, IpcSender<BluetoothObjectMsg>),
+ GetCharacteristic(String, String, IpcSender<BluetoothObjectMsg>),
+ GetCharacteristics(String, Option<String>, IpcSender<BluetoothObjectMsg>),
+ GetDescriptor(String, String, IpcSender<BluetoothObjectMsg>),
+ GetDescriptors(String, Option<String>, IpcSender<BluetoothObjectMsg>),
ReadValue(String, IpcSender<BluetoothObjectMsg>),
WriteValue(String, Vec<u8>, IpcSender<BluetoothObjectMsg>),
Exit,
@@ -40,6 +43,9 @@ pub enum BluetoothObjectMsg {
is_primary: bool,
instance_id: String
},
+ BluetoothServices {
+ services_vec: Vec<BluetoothObjectMsg>
+ },
BluetoothCharacteristic {
// Characteristic
uuid: String,
@@ -55,10 +61,16 @@ pub enum BluetoothObjectMsg {
reliable_write: bool,
writable_auxiliaries: bool
},
+ BluetoothCharacteristics {
+ characteristics_vec: Vec<BluetoothObjectMsg>
+ },
BluetoothDescriptor {
uuid: String,
instance_id: String
},
+ BluetoothDescriptors {
+ descriptors_vec: Vec<BluetoothObjectMsg>,
+ },
BluetoothReadValue {
value: Vec<u8>
},