---
title: close()
framework: IOBluetooth
role: symbol
role_heading: Instance Method
path: iobluetooth/iobluetoothrfcommchannel/close()
---

# close()

Close the channel.

## Declaration

```swift
func close() -> IOReturn
```

## Return Value

Return Value An error code value. 0 if successful.
