       bluetoothState = .off
       bluetoothLowEnergyState = .off
       #if TEST
-        NSNotificationCenter.defaultCenter().postNotificationName(
-          Constants.NSNotificationName.centralBluetoothManagerDidChangeState,
+        NotificationCenter.default.post(
+          name: NSNotification.Name(rawValue: Constants.NSNotificationName.centralBluetoothManagerDidChangeState),
           object: self
         )
       #endif

                                                                  error: Error?) {
    let parameters = [
      "peerIdentifier" : identifier,
      "error" : error != nil ? errorDescription(error!) : NSNull()
    ]
    delegate?.context(self, didFailMultiConnectConnectionWith: jsonValue(parameters))
  }

  public init(serviceType: String) {

  }

  public func connect(_ parameters: [AnyObject]) -> String {
    return jsonValue([JSONKey.err.rawValue : AppContextError.connectNotSupported.description] as AnyObject)
  }
}

