                     log("Did connect to existing peripheral: \(peripheral.name)")
                     currentPeripheral?.peripheral(peripheral, didDiscoverServices: nil)
                 } else {
-                    log("Did connect peripheral: \(peripheral.name)")
+                    log("Did connect peripheral: \(peripheral.name!)")
                     currentPeripheral?.didConnect()
                 }
             }

    {
        log("Did connect")
        if peripheral.services != nil {
            log("Skipping service discovery for: \(peripheral.name)")
            peripheral(peripheral, didDiscoverServices: nil)
            return
        }
        
        log("Start service discovery: \(peripheral.name)")
        peripheral.discoverServices([UARTPeripheral.uartServiceUUID(), UARTPeripheral.deviceInformationServiceUUID()])
    }
    

    func didReadHardwareRevisionString(string:String)
    func uartDidEncounterError(error:String)
}
