This tutorial describes how to send and receive data with the Serial Communications Server.
This tutorial follows the tutorial How to Open a Port: TutorialHow to Open a Port: Tutorial.
TDesC8
Descriptor and fill the Descriptor
with the data to send.
TRequestStatus
.
RComm::Write()
and set the aDes
parameter
as a reference to the Descriptor, and set the aStatus parameter to the request
object.
The RComm API does not allow another request to be made until the first
request has completed.
If the aTimeOut
parameter
was set with the RComm::Write()
function then the request
completes with KErrTimedOut if the Descriptor was not filled
during the aTimeOut
time.
If the write request is in progress, the write request can be cancelled by calling WriteCancel().
A port can be configured to automatically terminate data transfer requests early when various error conditions occur.