     static let FRAME_EXTRA_BYTES: Int16 = 16
 
     var id: UInt16
-    var result: ControlRequestErrorType
-    var data: Data?
+    var result: ControlReplyErrorType
+    var data: Data
 }

    case LeaveNetwork = 1009
    case GetNetworkInfo = 1010
    case ScanNetworks = 1011
    case Test = 1111
    
}

public enum ControlRequestErrorType: Int32 {
    case NONE = 0
    case UNKNOWN = -100
    case BUSY = -110

    case GetSerialNumber = 21
    case GetConnectionStatus = 300
    case IsClaimed = 201
    case CreateNetwork = 1002
    case StartCommissioner = 1003
    case StopCommissioner = 1004
