Returns the channel maximum transfer unit.
SDK
- macOS 10.2+
Framework
- IOBluetooth
Declaration
func getMTU() -> Bluetooth RFCOMMMTU
Return Value
Channel MTU size .
Discussion
Returns the length of the largest chunk of data that this channel can carry. If the caller wishes to use the write:length:sleep: api the length of the data can not be bigger than the channel MTU (maximum transfer unit).