 //      NSLog("[Konashi] UartRx \(data.description)")
 //    }
     
-    if let default_konashi = device.value(forKey: "konashi") as? String {
+    if let default_konashi = device?["konashi"] {
       NSLog("[Konashi] Auto connecting to \(default_konashi) (default) ...")
       findKonashiWithName(default_konashi)
     }

    NSLog("uuid:\(uuid)")
    uuidLabel.text = "uuid:\(uuid)"
    
    let device: NSMutableDictionary
    if devices[uuid] != nil {
      device = devices[uuid] as! NSMutableDictionary
    }
    else {
      NSLog("Not found device configuration")
      device = devices[devices.allKeys.first!] as! NSMutableDictionary
    }
    
    if let konashi = device.value(forKey: "konashi") as? String {
      konashiBtnDefaultLabel = "Find Konashi (\(konashi))"
      konashiBtn.setTitle(konashiBtnDefaultLabel, for: UIControlState())
    }

  
  var updateRotationFlag = false
  
  var devices = [String: [String: String]]()
  var colors = [String: [String: Float]]()
  
  
