public string GetGapAdTypesStr(byte adTypes)
{
switch (adTypes)
{
case 1:
return "Flags: Discovery Mode";
case 2:
return "Service: More 16-bit UUIDs Available";
case 3:
return "Service: Complete List Of 16-bit UUIDs";
case 4:
return "Service: More 32-bit UUIDs Available";
case 5:
return "Service: Complete List Of 32-bit UUIDs";
case 6:
return "Service: More 128-bit UUIDs Available";
case 7:
return "Service: Complete List Of 128-bit UUIDs";
case 8:
return "Shortened Local Name";
case 9:
return "Complete Local Name";
case 10:
return "TX Power Level: 0xXX: -127 to +127 dBm";
case 13:
return string.Concat(
"Simple Pairing OOB Tag: Class Of device", newline_2tab,
" (3 octets)");
case 14:
return string.Concat(
"Simple Pairing OOB Tag: Simple Pairing ", newline_2tab,
"Hash C (16 octets)");
case 15:
return string.Concat(
"Simple Pairing OOB Tag: Simple Pairing ", newline_2tab,
"Randomizer R (16 octets)");
case 16:
return "Security Manager TK Value";
case 17:
return "Secutiry Manager OOB Flags";
case 18:
return string.Concat("Min And Max Values Of The Connection Interval ", newline_2tab,
"(2 Octets Min, 2 Octets Max) (0xFFFF Indicates ", newline_2tab,
"No Conn Interval Min Or Max)");
case 19:
return "Signed Data Field";
case 20:
return string.Concat("Service Solicitation: List Of 16-bit ", newline_2tab,
"Service UUIDs");
case 21:
return string.Concat(
"Service Solicitation: List Of 128-bit ", newline_2tab,
"Service UUIDs");
case 22:
return "Service Data";
case byte.MaxValue:
return string.Concat(
"Manufacturer Specific Data: First 2 Octets ", newline_2tab,
"Contain The Company Identifier Code ", newline_2tab,
"Followed By The Additional Manufacturer ", newline_2tab,
"Specific Data");
default:
return "Unknown Gap Ad Types";
}
}