Skip to content
Permalink
Browse files

WebBluetooth Specification Change

  • Loading branch information...
zakorgy committed Jul 26, 2016
1 parent a94b92f commit 2d2eb62fa0a0d8ed7605c395d67cc616a5efbe92
Showing with 6 additions and 0 deletions.
  1. +6 −0 components/script/dom/bluetoothremotegattcharacteristic.rs
@@ -195,6 +195,12 @@ impl BluetoothRemoteGATTCharacteristicMethods for BluetoothRemoteGATTCharacteris
if !self.Service().Device().Gatt().Connected() {
return Err(Network)
}

if !(self.Properties().Write() ||
self.Properties().WriteWithoutResponse() ||
self.Properties().AuthenticatedSignedWrites()) {
return Err(NotSupported)
}
let (sender, receiver) = ipc::channel().unwrap();
self.get_bluetooth_thread().send(
BluetoothMethodMsg::WriteValue(self.get_instance_id(), value, sender)).unwrap();

0 comments on commit 2d2eb62

Please sign in to comment.
You can’t perform that action at this time.