Writes the given data synchronously over the target L2CAP channel to the remote device.
- macOS 10.2+
Pointer to the buffer containing the data to send.
The length of the given data buffer.
Returns kIOReturnSuccess if the data was written successfully.
The length of the data may not exceed the L2CAP channel's ougoing MTU. This method will block until the data has been successfully sent to the hardware for transmission (or an error occurs).
NOTE: This method is only available in macOS 10.2.5 (Bluetooth v1.2) or later.