title: CoreBlutooth setNotifyValue error: "The request is not supported."
body: <p>i try to write app with connect to bluetooth and send some data and get response, but got error when try to set: setNotifyValue 
  I start search with</p>
  
  <pre><code>self.centralManager?.scanForPeripherals(withServices: [serviceUUID], options: [CBCentralManagerScanOptionAllowDuplicatesKey : true])
  </code></pre>
  
  <p>after i connect to peripheral</p>
  
  <pre><code>public func centralManager(_ central: CBCentralManager, didDiscover peripheral: CBPeripheral, advertisementData: [String : Any], rssi RSSI: NSNumber) {
  
      self.discoveredPeripheral = peripheral
      self.discoveredPeripheral!.delegate = self
      self.centralManager?.stopScan()
      self.centralManager?.connect(self.discoveredPeripheral!, options: nil)
  
  }
  </code></pre>
  
  <p>after connect i discover services</p>
  
  <pre><code>public func centralManager(_ central: CBCentralManager, didConnect peripheral: CBPeripheral) {
      self.discoveredPeripheral!.discoverServices([serviceUUID])
  }
  </code></pre>
  
  <p>after discover charachteristic</p>
  
  <pre><code>public func peripheral(_ peripheral: CBPeripheral, didDiscoverServices error: Error?) {
      if let services = peripheral.services{
          for service in services {
              if service.uuid.isEqual(serviceUUID) {
                  self.discoveredPeripheral!.discoverCharacteristics(nil, for: service)
  
              }
          }
      } else{
          print("errors")
      }
  }
  </code></pre>
  
  <p>after i save characteristic and try setNotifyValue to true</p>
  
  <pre><code>public func peripheral(_ peripheral: CBPeripheral, didDiscoverCharacteristicsFor service: CBService, error: Error?) {
      if let charachteristics = service.characteristics {
          for charactiristic in charachteristics {
              if charactiristic.uuid.isEqual(readCharacteristicUUID) {
                  self.readCharacteristic = charactiristic
              } else if charactiristic.uuid.isEqual(writeCharacteristicUUID) {
                  self.writeCharacteristic = charactiristic
                  peripheral.setNotifyValue(true, for: charactiristic)
              }
  
          }
      }
  }
  </code></pre>
  
  <p>but in i got error:</p>
  
  <pre><code>public func peripheral(_ peripheral: CBPeripheral, didUpdateNotificationStateFor characteristic: CBCharacteristic, error: Error?) {
      print("didUpdateNotification")
      if error != nil {
          print((error!.localizedDescription))
  
      }
  }
  </code></pre>
  
  <blockquote>
    <p>The request is not supported.</p>
  </blockquote>
  
  <p>in android it possible to connect with response</p>
  
  <p>does anyone ideas, what is wrong and how fix this ?</p>
  
  <p>I try restart phone: <a href="https://stackoverflow.com/questions/17360347/cbcentralmanager-setnotifyvalue-not-working">CBCentralManager setNotifyValue: not working</a>
  but it doesn't help</p>