public string GetStatusStr(byte status)
{
switch (status)
{
case 0:
return "Success";
case 1:
return "Failure";
case 2:
return "Invalid Parameter";
case 3:
return "Invalid Task";
case 4:
return "Msg Buffer Not Available";
case 5:
return "Invalid Msg Pointer";
case 6:
return "Invalid Event Id";
case 7:
return "Invalid Interupt Id";
case 8:
return "No Timer Avail";
case 9:
return "NV Item UnInit";
case 10:
return "NV Op Failed";
case 11:
return "Invalid Mem Size";
case 12:
return "Error Command Disallowed";
case 16:
return "Not Ready To Perform Task";
case 17:
return "Already Performing That Task";
case 18:
return "Not Setup Properly To Perform That Task";
case 19:
return "Memory Allocation Error Occurred";
case 20:
return "Can't Perform Function When Not In A Connection";
case 21:
return "There Are No Resources Available";
case 22:
return "Waiting";
case 23:
return "Timed Out Performing Function";
case 24:
return "A Parameter Is Out Of Range";
case 25:
return "The Link Is Already Encrypted";
case 26:
return "The Procedure Is Completed";
case 48:
return "The User Canceled The Task";
case 49:
return "The Connection Was Not Accepted";
case 50:
return "The Bound Information Was Rejected.";
case 64:
return "The Attribute PDU Is Invalid";
case 65:
return "The Attribute Has Insufficient Authentication";
case 66:
return "The Attribute Has Insufficient Encryption";
case 67:
return "The Attribute Has Insufficient Encryption Key Size";
case byte.MaxValue:
return "Task ID Isn't Setup Properly";
default:
return "Unknown Status";
}
}