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

# hasOpenOBEXConnection()

Has a successful connect packet been sent and received? This API tells you so.

```
func hasOpenOBEXConnection() -> Bool
```

## Return Value

True or false, we are OBEX-connected to another OBEX entity.

## Discussion

A “transport” connection may exist (such as a Bluetooth baseband connection), but the OBEX connection may not be established over that transport. If it has been, this function returns true.

---

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)