Send an echo request over the L2CAP connection to a remote device.
- macOS 10.2+
(void *) - Pointer to buffer to send.
(UInt16) - Length of the buffer to send
Returns kIOReturnSuccess if the echo request was able to be sent.
The current implementation returns when the request has been sent, but does not indicate when a response is received. Also, the baseband connection must be up for the echo request to be sent. In the future, this method will also open the connection if necessary. The API will be updated to allow the client to be informed when the echo response has been received (both synchronously and asynchronously).