     case unauthorized
 }
 
+public enum UMDeviceStatus {
+    case success
+    case failure
+}
+
 public enum UMGestureResponse {
-    case success
+    case confirm
     case failure
 }
 

                return
            }
        case "FA01":
            if let closure = confirmClosure {
                guard let value = dataArray.first else {
                    closure(.failure)
                    confirmClosure = nil
                    return
                }
                
                switch value {
                case UMCharacteristics.UrbandReady:
                    debugPrint("The urband is ready and without problems")
                    closure(UMGestureResponse.success)
                    confirmClosure = nil
                case UMCharacteristics.ConfirmGesture:
                    debugPrint("The urband confirm gesture was detected")
                    closure(UMGestureResponse.success)
                    confirmClosure = nil
                default:
                    debugPrint("Unrecognized value in characteristic \(characteristic.uuid.uuidString)")
                }
            }
        default:
            debugPrint("The characteristic \(characteristic.uuid.uuidString) is not defined yet")
        }

    }
    
    public func readBattery(forUrband u: CBPeripheral, response: @escaping (UInt8) -> Void) {
        batteryClosure = response
        let c2A19 = u.services?[4].characteristics?[0]
        notifyChange(peripheral: u, forCharacteristic: c2A19, state: .battery)
    }
    
    public func cancelBattery(forUrband u: CBPeripheral) {
