<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 16.0.0 -",
    "macOS: -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "DeviceDiscoveryExtension",
  "identifier" : "/documentation/DeviceDiscoveryExtension/DDDeviceProtocolToString(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "DeviceDiscoveryExtension"
    ],
    "preciseIdentifier" : "c:@F@DDDeviceProtocolToString"
  },
  "title" : "DDDeviceProtocolToString(_:)"
}
-->

# DDDeviceProtocolToString(_:)

Returns human-readable text for the specified protocol identifier.

```
func DDDeviceProtocolToString(_ inValue: DDDevice.Protocol) -> String
```

## Parameters

`inValue`

A device-protocol identifier to convert to text.

## Return Value

A textual value for the specified device protocol.

## Discussion

Your extension can use this function for logging.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)