I have made serial connection application to receive and transmit data through the serialport.
Now I need method which notfies me, when data has arrived to Rx buffer so I do not have to poll it all the time.
I have tried to use "NotifyDataAvailable" method without success.
here is part of code:
class Serial: public RComm {
protected:
void NotifyDataAvailable(TRequestStatus& aStatus) const; // Virtual ???
};
void Serial::Init () {
...
}
Serial::writeData() {
...
}
void Serial::close() {
...
}
void Serial::NotifyDataAvailable(TRequestStatus& aStatus) const
{
do something when data is available to read
}
I´m not sure is this allowed.
Does anybody have any idea what is the best way to do this
tnx: Hamssi
Re: Serial and NotifyDataAvailable
2007-06-12, 09:15#2