<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "IOBluetooth",
  "identifier" : "/documentation/IOBluetooth/IOBluetoothSDPDataElement/getDataValue()",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "IOBluetooth"
    ],
    "preciseIdentifier" : "c:objc(cs)IOBluetoothSDPDataElement(im)getDataValue"
  },
  "title" : "getDataValue()"
}
-->

# getDataValue()

If the data element is represented by a data object, it returns the value as an NSData.

```
func getDataValue() -> Data!
```

## Return Value

Returns an NSData representation of the data element if it is a 128-bit number.

## Discussion

The data types represented by a data object are 128-bit versions of 1 (unsigned int) and 2 (signed int).

---

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)