#2954

Bitahwa Bindu
Keymaster

You need to subscribe to the DataReceived event before opening the port, then listen to that event when triggered. You can’t just read data without knowing if data is there.
when there is data in the buffer, the data received event is triggered.
use something like this: