setSupervisionTimeout(_:)
Sets the connection supervision timeout.
Declaration
func setSupervisionTimeout(_ timeout: UInt16) -> IOReturnParameters
- timeout:
A client-supplied link supervision timeout value to use to monitor the connection. The timeout value should be specified in slots, so you can use the BluetoothGetSlotsFromSeconds macro to get the proper value. e.g. BluetoothGetSlotsFromSeconds( 5.0 ) will give yield the proper number of slots (8000) for 5 seconds.
Return Value
Returns kIOReturnSuccess if it was possible to set the connection supervision timeout.
Discussion
NOTE: This method is only available in macOS 10.5 (Bluetooth v2.0) or later.